Author Topic: DarkRP MoneyVar?  (Read 2183 times)

0 Members and 1 Guest are viewing this topic.

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
DarkRP MoneyVar?
« 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 but i had no luck ;( If anyone knows PLEASE HELP! Thanks!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: DarkRP MoneyVar?
« Reply #1 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.

« Last Edit: March 29, 2015, 09:05:20 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
Re: DarkRP MoneyVar?
« Reply #2 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 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.


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)