From 0accb676cb2a9c14c3bc9d2251ef3cfc2264a821 Mon Sep 17 00:00:00 2001 From: Matthew <22198949+MafewTM@users.noreply.github.com> Date: Tue, 14 Nov 2023 23:14:22 -0500 Subject: [PATCH] fix: remove init health and armor --- client/load-unload.lua | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/client/load-unload.lua b/client/load-unload.lua index bac42cf..07cd8c8 100644 --- a/client/load-unload.lua +++ b/client/load-unload.lua @@ -1,14 +1,3 @@ ----Initialize health and armor settings on the player's ped ----@param ped number ----@param playerId number ----@param playerMetadata any -local function initHealthAndArmor(ped, playerId, playerMetadata) - SetEntityHealth(ped, playerMetadata.health) - SetPlayerHealthRechargeMultiplier(playerId, 0.0) - SetPlayerHealthRechargeLimit(playerId, 0.0) - SetPedArmour(ped, playerMetadata.armor) -end - ---starts death or last stand based off of player's metadata ---@param metadata any local function initDeathAndLastStand(metadata) @@ -29,9 +18,6 @@ local function onPlayerLoaded() pcall(function() exports.spawnmanager:setAutoSpawn(false) end) CreateThread(function() Wait(1000) - local ped = cache.ped - local playerId = cache.playerId - initHealthAndArmor(ped, playerId, QBX.PlayerData.metadata) initDeathAndLastStand(QBX.PlayerData.metadata) end) end