Client
Here are some useful Events and Exports
ESX Ambulancejob Dispatch Integration
Step 1: Locate the Function
function SendDistressSignal()
local playerPed = PlayerPedId()
local coords = GetEntityCoords(playerPed)
ESX.ShowNotification(TranslateCap('distress_sent'))
TriggerServerEvent('esx_ambulancejob:onPlayerDistress')
endStep 2: Modify the Function
function SendDistressSignal()
local playerPed = PlayerPedId()
local coords = GetEntityCoords(playerPed)
local xPlayer = ESX.GetPlayerData()
local firstName = xPlayer.firstName
local lastName = xPlayer.lastName
local playerName = firstName .. " " .. lastName
local location = "Urban district"
ESX.ShowNotification(TranslateCap('distress_sent'))
TriggerServerEvent('rs_dispatch:gotdispatch', playerName, coords, location)
endLast updated