DarkRP.Player.SetDarkRPVar
From GMod Wiki
This page has been nominated for deletion. Deletion is due within approximately 30 days from nomination, unless the deletion has been disputed on the talk page. See more pages nominated for deletion here. Reason for deletion: Not what Garry wants the wiki to be used for Last Edit was made on 11/16/2011 |
Gamemode Function: DarkRP.Player.SetDarkRPVar | |
---|---|
DarkRP.Player.SetDarkRPVar is a function that is defined in the DarkRP Gamemode and its derivatives. |
Function | |
Syntax |
Player:SetDarkRPVar( String Variable, Var Value ) Where is this used? |
Description: | |
Sets a variable on the player, both clientside and serverside can access this. But only serverside may change it. | |
Returns: | nil |
Part of Library: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=DarkRP.Player.SetDarkRPVar]DarkRP.Player.SetDarkRPVar [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- 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.