Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function meta:addMoney(amount)
- if not amount then return false end
- local newmoney = self.DarkRPVars.money + math.floor(amount)
- if newmoney > 25000 then
- newmoney = 25000
- end
- DB.StoreMoney(self, newmoney)
- local total = self:getDarkRPVar("money") + math.floor(amount)
- total = hook.Call("playerWalletChanged", GAMEMODE, self, amount, self:getDarkRPVar("money")) or total
- self:setDarkRPVar("money", total)
- if self.DarkRPUnInitialized then return end
- DarkRP.storeMoney(self, total)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement