Ulysses

General => Developers Corner => Topic started by: XxLMM13xX on March 29, 2015, 08:46:06 PM

Title: DarkRP MoneyVar?
Post 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!
Title: Re: DarkRP MoneyVar?
Post by: JamminR on March 29, 2015, 09:01:38 PM
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.

Title: Re: DarkRP MoneyVar?
Post by: XxLMM13xX on March 30, 2015, 11:21:50 AM
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)