diff --git a/scripts/server/native.js b/scripts/server/native.js index ac66e4e6..14a9d64a 100644 --- a/scripts/server/native.js +++ b/scripts/server/native.js @@ -211,21 +211,21 @@ function getPlayerArmour(client) { // =========================================================================== function setPlayerCash(client, amount) { - getPlayerCurrentSubAccount(client).cash = amount; + getPlayerCurrentSubAccount(client).cash = toInteger(amount); updatePlayerCash(client); } // =========================================================================== function givePlayerCash(client, amount) { - getPlayerCurrentSubAccount(client).cash = getPlayerCurrentSubAccount(client).cash + amount; + getPlayerCurrentSubAccount(client).cash = getPlayerCurrentSubAccount(client).cash + toInteger(amount); updatePlayerCash(client); } // =========================================================================== function takePlayerCash(client, amount) { - getPlayerCurrentSubAccount(client).cash = getPlayerCurrentSubAccount(client).cash - amount; + getPlayerCurrentSubAccount(client).cash = getPlayerCurrentSubAccount(client).cash - toInteger(amount); updatePlayerCash(client); }