Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Phone [ESX] gksphone - no iplock & decrypted NEW

wdawdwdsdwd

Member
Joined
Dec 29, 2022
Messages
7
Reaction score
1
Points
156
Location
asdawdads
Hy guys how to integrate ems distress signal? :D
Ok i know im pretty late but hope it helps for anybody needs help with this issue

Go into your esx_ambulancejob/client/main.lua

Search for "SendDistressSignal"

replace the SendDistressSignal function with this


function SendDistressSignal()
local playerPed = PlayerPedId()
local coords = GetEntityCoords(playerPed)
local myPos = GetEntityCoords(PlayerPedId())
local GPS = 'GPS: ' .. myPos.x .. ', ' .. myPos.y
ESX.TriggerServerCallback('gksphone:namenumber', function(Races)
local name = Races[2].firstname .. ' ' .. Races[2].lastname
TriggerServerEvent('gksphone:jbmessage', name, Races[1].phone_number, 'Emergency aid notification', '', GPS, 'ambulance', false)
end)
end

hope it helps
 
Top