General > Developers Corner

DarkRP MoneyVar?

(1/1)

XxLMM13xX:
Hello! Im looking for the var to get a players money...

How would i do this... i spent a long time on the Wiki but i had no luck ;( If anyone knows PLEASE HELP! Thanks!

JamminR:
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 for Adding/subtracting Money and
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.

XxLMM13xX:

--- Quote from: 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 for Adding/subtracting Money and
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.

--- End quote ---


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)

Navigation

[0] Message Index

Go to full version