General > Developers Corner

DarkRP Refund Command

<< < (2/2)

[?] The Last Centurion:

--- Quote from: JamminR on October 22, 2017, 08:24:09 AM ---Is this a server side only command? Or a client side only command?
Though it can still live in /sh (shared), if it's either one or the other, you'd need to specify a comparison to ensure it's only being run where it's supposed to (server or client).

--- End quote ---

Wouldn't it have to run on the server as you'd be giving another player the money? How would I go about specifying a comparison?

Other than that, I actually think it would have worked, but I made it "AddMoney" instead of "addMoney".


--- Quote from: Timmy on October 22, 2017, 08:50:50 AM ----snip-

--- End quote ---

Thank you, and if I do more Lua in the future, I will keep that print line thing in mind.



Another question, how would I confirm that it's actually working?

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given

[0] Board index

Go to full version