ESX [ESX] GKPhone (NOIPLOCK) CHEAPER!

nukepug

Member
Credits
4
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
 

ZePoXs

New member
Credits
68
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
It does not work I only get an error:
[ script:mysql-async] [ERROR] [MySQL] [gksphone] An error happens on MySQL for query "INSERT INTO gksphone_job_message (`name`, `number`,`message`, `photo`, `gps`, `owner`, `jobm`) VALUES('ambulance', 'ärztliche Hilfe erforderlich: Bewusstloser Bürger!', `z` = 112.2597427368164, `y` = -644.5841064453125, `x` = 283.10791015625, `PlayerCoords` = '[object Object]', @gps, 0, @jobm)": ER_BAD_FIELD_ERROR: Unknown column 'z' in 'field list'
 
Top