Jyben / emergency

🚑 A GTA V FiveM mod to add emergency job
https://forum.fivem.net/t/release-job-save-people-be-a-hero-paramedic-emergency-coma-ko/19773
Apache License 2.0
5 stars 2 forks source link

Possible Money Problem? #5

Closed Leah-UK closed 7 years ago

Leah-UK commented 7 years ago

Under sv_emergency line 91 you have "user:setMoney(0)" wouldn't that set your money to nil? You'd want to remove money instead with "Player:removeMoney(amount)" (assuming you use EssentialMode)

Jyben commented 7 years ago

I don't agree, setMoney should be work, it's a function in resources\essentialmode\server\classes\player.lua user or Player are the same, it depends the context you use

Leah-UK commented 7 years ago

If your intention is to remove all of the players money then yeah it's good to go. But if you want to remove money then it's wrong I believe? - I think your intention is the first though judging from your forum replies.

Jyben commented 7 years ago

Yes I assume the server use a mod to have money in you pocket and money in your bank, lot of servers works in this way