• Please report every thread you think might be harmful or does not meet expectations or the link is offline, you will be refunded the credits you paid and the Thread Starter recieves a message to update his content, if its malicious we remove it and warn and eventualy the TS if it reoccurs.

ESX [ESX] GKPhone (NOIPLOCK) CHEAPER! (2 Viewers)

notixx

New member
Joined
May 2, 2022
Messages
1
Reaction score
0
Points
1
Credits
1
fix distress signal ambu job


function SendDistressSignal()
local playerPed = PlayerPedId()
PedPosition = GetEntityCoords(playerPed)

local PlayerCoords = { x = PedPosition.x, y = PedPosition.y, z = PedPosition.z }

ESX.ShowNotification(_U('distress_sent'))


TriggerServerEvent('gksphone:jbmessage', 'ambulance', _U('distress_message'), PlayerCoords, {

PlayerCoords = { x = PedPosition.x, y = PedPosition.y, z = PedPosition.z },
})
end

AmbulanceJob DistressSignal


function SendDistressSignal()
local playerPed = PlayerPedId()
local coords = GetEntityCoords(playerPed)
local myPos = GetEntityCoords(PlayerPedId())
local GPS = 'GPS: ' .. myPos.x .. ', ' .. myPos.y
ESX.ShowNotification(_U('distress_sent'))
ESX.TriggerServerCallback('gksphone:namenumber', function(Races)
local name = Races[2].firstname .. ' ' .. Races[2].lastname
TriggerServerEvent('gksphone:jbmessage', name, Races[1].phone_number, 'Sürgősségi segélyértesítés', '', GPS, 'ambulance')
end)
end
 
  • Post hidden due to user being banned.

Users who are viewing this thread

Top