Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge dev into main #66

Merged
merged 7 commits into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 6 additions & 17 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,15 @@ AddEventHandler('esx:onPlayerLogout', function()
end)

AddEventHandler('esx:onPlayerSpawn', function()
if firstSpawn then
firstSpawn = false
return
end
isDead = false
ClearTimecycleModifier()
SetPedMotionBlur(PlayerPedId(), false)
ClearExtraTimecycleModifier()
EndDeathCam()
if firstSpawn then
firstSpawn = false

if Config.SaveDeathStatus then
while not ESX.PlayerLoaded do
Wait(1000)
end

ESX.TriggerServerCallback('esx_ambulancejob:getDeathStatus', function(shouldDie)
if shouldDie then
Wait(1000)
SetEntityHealth(PlayerPedId(), 0)
end
end)
end
end
end)

-- Create blips
Expand Down Expand Up @@ -148,6 +136,7 @@ function StartDeathLoop()
DetachEntity(playerPed, true, false)
ClearPedTasksImmediately(playerPed)
end
Wait(0)
end
end)
end
Expand Down Expand Up @@ -379,4 +368,4 @@ end)
-- Load unloaded IPLs
if Config.LoadIpl then
RequestIpl('Coroner_Int_on') -- Morgue
end
end
1 change: 0 additions & 1 deletion config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Config.Debug = ESX.GetConfig().EnableDebug
Config.Marker = {type = 1, x = 1.5, y = 1.5, z = 0.5, r = 102, g = 0, b = 102, a = 100, rotate = false}

Config.ReviveReward = 700 -- Revive reward, set to 0 if you don't want it enabled
Config.SaveDeathStatus = true -- Save Death Status?
Config.LoadIpl = true -- Disable if you're using fivem-ipl or other IPL loaders

Config.Locale = GetConvar('esx:locale', 'en')
Expand Down
4 changes: 2 additions & 2 deletions fxmanifest.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
fx_version 'adamant'
game 'gta5'
description 'Provides a way for players to RP as paramedics (heal/revive players)'
version '1.0.1'
legacyversion '1.9.1'
version '1.0.2'
legacyversion '1.11.4'
lua54 'yes'

shared_scripts {
Expand Down