Skip to content

Commit

Permalink
Update esx_ambulancejob
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsikNox committed Sep 26, 2019
1 parent ee6c863 commit e43525d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
25 changes: 3 additions & 22 deletions WantToRemove esx_kashacters/esx_ambulancejob/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ function RespawnPed(ped, coords)
SetEntityCoordsNoOffset(ped, coords.x, coords.y, coords.z, false, false, false, true)
NetworkResurrectLocalPlayer(coords.x, coords.y, coords.z, coords.heading, true, false)
SetPlayerInvincible(ped, false)
TriggerEvent('playerSpawned', coords.x, coords.y, coords.z, coords.heading)
--TriggerEvent('esx_ambulancejob:multicharacter', coords.x, coords.y, coords.z, coords.heading)
TriggerEvent('playerSpawned', coords.x, coords.y, coords.z, coords.heading)
ClearPedBloodDamage(ped)

ESX.UI.Menu.CloseAll()
Expand Down Expand Up @@ -779,7 +778,6 @@ function OpenPharmacyMenu()
)
end


AddEventHandler('playerSpawned', function()
IsDead = false

Expand All @@ -790,19 +788,6 @@ AddEventHandler('playerSpawned', function()
end
end)

--[[
RegisterNetEvent('esx_ambulancejob:multicharacter')
AddEventHandler('esx_ambulancejob:multicharacter', function()
IsDead = false
if FirstSpawn then
TriggerServerEvent('esx_ambulancejob:firstSpawn')
exports.spawnmanager:setAutoSpawn(false) -- disable respawn
FirstSpawn = false
end
end)
--]]

RegisterNetEvent('esx:playerLoaded')
AddEventHandler('esx:playerLoaded', function(xPlayer)
PlayerData = xPlayer
Expand Down Expand Up @@ -1353,7 +1338,7 @@ end)
RegisterNetEvent('esx_ambulancejob:requestDeath')
AddEventHandler('esx_ambulancejob:requestDeath', function()
if Config.AntiCombatLog then
Citizen.Wait(8000)
Citizen.Wait(5000)
SetEntityHealth(GetPlayerPed(-1), 0)
end
end)
Expand Down Expand Up @@ -1422,8 +1407,4 @@ Citizen.CreateThread(function()
end
end
end
end)

---------------------------------
--------- ikNox#6088 ------------
---------------------------------
end)
2 changes: 1 addition & 1 deletion WantToRemove esx_kashacters/esx_ambulancejob/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Config.AuthorizedVehicles = {
label = 'Ambulance'
},
{
model = 'dodgeSamu',
model = 'dodgeEMS',
label = 'Dodge'
}

Expand Down

0 comments on commit e43525d

Please sign in to comment.