Ulysses
General => Developers Corner => Topic started by: XxLMM13xX on March 29, 2015, 08:46:06 PM
-
Hello! Im looking for the var to get a players money...
How would i do this... i spent a long time on the Wiki (http://wiki.darkrp.com/index.php/Category:DarkRP) but i had no luck ;( If anyone knows PLEASE HELP! Thanks!
-
Define "long"
30 seconds of a search for "money" at that wiki told me that it's usually a variable named "money", and two commands to manipulate it likely are
http://wiki.darkrp.com/index.php/DarkRP.Player.AddMoney (http://wiki.darkrp.com/index.php/DarkRP.Player.AddMoney) for Adding/subtracting Money and
http://wiki.darkrp.com/index.php/DarkRP.Player.SetDarkRPVar (http://wiki.darkrp.com/index.php/DarkRP.Player.SetDarkRPVar) for 'set'ting a particular amount.
Tons of other functions and hooks dealing with it, depending on the situation.
EDIT-
There's also a release in our forum made by syst3M4TiK called Money commands - DarkRP that incorporate ulx permissions for commands.
-
Define "long"
30 seconds of a search for "money" at that wiki told me that it's usually a variable named "money", and two commands to manipulate it likely are
http://wiki.darkrp.com/index.php/DarkRP.Player.AddMoney (http://wiki.darkrp.com/index.php/DarkRP.Player.AddMoney) for Adding/subtracting Money and
http://wiki.darkrp.com/index.php/DarkRP.Player.SetDarkRPVar (http://wiki.darkrp.com/index.php/DarkRP.Player.SetDarkRPVar) for 'set'ting a particular amount.
Tons of other functions and hooks dealing with it, depending on the situation.
EDIT-
There's also a release in our forum made by syst3M4TiK called Money commands - DarkRP that incorporate ulx permissions for commands.
I found the var its: getDarkRPVar("money")
I asked syst3M4TiK and he had no idea :P anyone who wants it that it!
(i found it in one of TheCodingBeast's HUD's)