Answers for "Distress Signal notification not working fivem"

0

Distress Signal notification not working fivem

function SendDistressSignal()
	local playerPed = PlayerPedId()
	local coords	= GetEntityCoords(playerPed)
	ESX.ShowNotification(_U('distress_sent'))
	TriggerServerEvent('esx_addons_gcphone:startCall', 'ambulance', _U('distress_message'), {
		['x'] = coords.x, 
		['y'] = coords.y
	})
end
Posted by: Guest on April-18-2021
0

Distress Signal notification not working fivem

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

	ESX.ShowNotification(_U('distress_sent'))
	
	TriggerServerEvent('esx_addons_gcphone:startCall', 'ambulance', _U('distress_message'), PlayerCoords, {

		PlayerCoords = { x = coords.x, y = coords.y, z = coords.z },
	})
	
end
Posted by: Guest on April-18-2021

Browse Popular Code Answers by Language