diff --git a/client/dead.lua b/client/dead.lua index 6a12790..85e7c15 100644 --- a/client/dead.lua +++ b/client/dead.lua @@ -19,7 +19,7 @@ local function playDeadAnimation() end end -exports('playDeadAnimation', playDeadAnimation) +exports('PlayDeadAnimation', playDeadAnimation) ---put player in death animation and make invincible function OnDeath() @@ -45,7 +45,7 @@ function OnDeath() SetEntityHealth(cache.ped, GetEntityMaxHealth(cache.ped)) end -exports('killPlayer', OnDeath) +exports('KillPlayer', OnDeath) local function respawn() local success = lib.callback.await('qbx_medical:server:respawn') @@ -80,9 +80,9 @@ function AllowRespawn() end end -exports('allowRespawn', AllowRespawn) +exports('AllowRespawn', AllowRespawn) -exports('disableRespawn', function() +exports('DisableRespawn', function() allowRespawn = false end) diff --git a/client/main.lua b/client/main.lua index 7b68346..d893323 100644 --- a/client/main.lua +++ b/client/main.lua @@ -55,23 +55,23 @@ RespawnHoldTime = 5 LastStandDict = 'combat@damage@writhe' LastStandAnim = 'writhe_loop' -exports('isDead', function() +exports('IsDead', function() return DeathState == sharedConfig.deathState.DEAD end) -exports('getLaststand', function() +exports('GetLaststand', function() return DeathState == sharedConfig.deathState.LAST_STAND end) -exports('getDeathTime', function() +exports('GetDeathTime', function() return DeathTime end) -exports('getLaststandTime', function() +exports('GetLaststandTime', function() return LaststandTime end) -exports('getRespawnHoldTimeDeprecated', function() +exports('GetRespawnHoldTimeDeprecated', function() return RespawnHoldTime end) @@ -119,7 +119,7 @@ function MakePedLimp() end --- TODO: this export should not check any conditions, but force the ped to limp instead. -exports('makePedLimp', MakePedLimp) +exports('MakePedLimp', MakePedLimp) local function resetMinorInjuries() for bodyPartKey, injury in pairs(Injuries) do @@ -167,7 +167,7 @@ function SendBleedAlert() exports.qbx_core:Notify(Lang:t('info.bleed_alert', {bleedstate = sharedConfig.bleedingStates[BleedLevel]}), 'inform') end -exports('sendBleedAlert', SendBleedAlert) +exports('SendBleedAlert', SendBleedAlert) ---adds a bleed to the player and alerts them. Total bleed level maxes at 4. ---@param level 1|2|3|4 speed of the bleed diff --git a/client/setdownedstate.lua b/client/setdownedstate.lua index 70b0dac..ba02b3d 100644 --- a/client/setdownedstate.lua +++ b/client/setdownedstate.lua @@ -45,7 +45,7 @@ local function playLastStandAnimation() end end -exports('playLastStandAnimationDeprecated', playLastStandAnimation) +exports('PlayLastStandAnimationDeprecated', playLastStandAnimation) ---@param bool boolean ---TODO: this event name should be changed within qb-policejob to be generic diff --git a/client/wounding.lua b/client/wounding.lua index 2358afa..31c8ee0 100644 --- a/client/wounding.lua +++ b/client/wounding.lua @@ -43,7 +43,7 @@ local function makePlayerBlackout() DoScreenFadeIn(1000) end -exports('makePlayerBlackout', makePlayerBlackout) +exports('MakePlayerBlackout', makePlayerBlackout) local function makePlayerFadeOut() DoScreenFadeOut(500) @@ -53,7 +53,7 @@ local function makePlayerFadeOut() DoScreenFadeIn(500) end -exports('makePlayerFadeOut', makePlayerFadeOut) +exports('MakePlayerFadeOut', makePlayerFadeOut) local function applyBleedEffects() if not QBX.PlayerData then return end @@ -88,7 +88,7 @@ local function removeBleed(level) SendBleedAlert() end -exports('removeBleed', removeBleed) +exports('RemoveBleed', removeBleed) local function handleBleeding() if DeathState ~= sharedConfig.deathState.ALIVE or BleedLevel <= 0 then return end