Pika-Software / realtime-player-updater

Allows player to update their model, skin, bodygroups, weapon color and player color in real time!

Home Page:https://steamcommunity.com/sharedfiles/filedetails/?id=2807143051

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Realtime Player Updater

Allows player to update their model, skin, bodygroups, weapon color and player color in real time!

Where is Lua code?

Written in Yuescript, compiled Lua code can be found in releases, or you can compile it yourself using compiled Yuescript Compiler.

Developer API

All functions and hooks are shared, which means they exist on both the server and the client.

rpu.Receivers

A table with all server-side callbacks, it does not exist on the client!

rpu.Register( string conVarName, function callback )

Adds callback to convar, must be added on both client and server side to work, client side callback is optional.

GM:RPULoaded( function registrationFunction )

Called after the RPU is fully loaded, the first argument is rui.Register function.

GM:RPUChange( Player ply, string conVarName, string value )

Called before the callback is executed and allows you to block it by returning false here.

GM:RPUChanged( Player ply, string conVarName, string value )

Called after RPUChange, additional network data can be written here on the client side, which can be read in RPUChange and RPUChanged on the server side using net library.

About

Allows player to update their model, skin, bodygroups, weapon color and player color in real time!

https://steamcommunity.com/sharedfiles/filedetails/?id=2807143051

License:MIT License