diff --git a/scripts/server/native.js b/scripts/server/native.js index 5d40e4fe..5b3018a3 100644 --- a/scripts/server/native.js +++ b/scripts/server/native.js @@ -188,6 +188,32 @@ function getPlayerSkin(client) { // =========================================================================== +function setPlayerHealth(client, health) { + logToConsole(LOG_DEBUG, `Setting ${getPlayerDisplayForConsole(client)}'s health to ${health}`); + sendPlayerSetHealth(client, health); +} + +// =========================================================================== + +function getPlayerHealth(client) { + return client.player.health; +} + +// =========================================================================== + +function setPlayerArmour(client, armour) { + logToConsole(LOG_DEBUG, `Setting ${getPlayerDisplayForConsole(client)}'s armour to ${armour}`); + sendPlayerSetArmour(client, armour); +} + +// =========================================================================== + +function getPlayerArmour(client) { + return client.player.armour; +} + +// =========================================================================== + function setPlayerCash(client, amount) { getPlayerCurrentSubAccount(client).cash = amount; updatePlayerCash(client);