Jump to navigation Jump to search
|This page refers to DarkRP 2.4.3. This information may be incorrect as of later versions.|
Check here for a up-to-date list of functions.
|Function name||Player:SetDarkRPVar(string Variable, any Value, Entity Target)|
|Sets a variable on the player, both clientside and serverside can access this. But only serverside may change it.|
|Part of Library:||Player|
|Description||Set's a Variable called Wallet on the player.|
function SendWallet( ply, Wallet ) ply:SetDarkRPVar( "money", Wallet ) end
|Output||You can now access the Variable using |
- DarkRPVars can hold Vectors, integers, strings, booleans, Entities, Players and nil
- This is the ALMOST the same as global variables, however, they are much more efficent, and they can hold unlimited bytes.