18 lines
		
	
	
	
		
			566 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			566 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| local Config = require("shared.sh_config")
 | |
| 
 | |
| if Config.Framework ~= "esx" then return end
 | |
| 
 | |
| function CallEmergency()
 | |
| 	TriggerServerEvent("esx_ambulancejob:onPlayerDistress")
 | |
| end
 | |
| 
 | |
| function RevivePed()
 | |
| 	TriggerEvent("esx_ambulancejob:RespawnAtHospital") --! Don't forget to check the documentation to ensure this works properly.
 | |
| end
 | |
| 
 | |
| AddEventHandler("esx:onPlayerDeath", function()
 | |
| 	TriggerEvent("cloud-deathscreen:client:OnPlayerDeath")
 | |
| end)
 | |
| AddEventHandler("esx:onPlayerSpawn", function()
 | |
| 	TriggerEvent("cloud-deathscreen:client:OnPlayerSpawn")
 | |
| end)
 | 
