ESX AmbulanceJob
Integrating statebag with ESX Ambulancejob
This section uses statebag to ensure proper handling of the playerโs state within the BattleRoyale. If you are unfamiliar with statebag or how to use it, please refer to the dedicated page that explains its usage.
If you're using the ESX ambulancejob script, follow these steps to integrate the arena handling:
1: Open the main.lua
file located in the client
folder.
2: Find the following line:
function OnPlayerDeath()
3:Directly below this line, add the following code:
if LocalPlayer.state.inRoyale then return end

Atualizado