Having this Error coming from the Edit of esx_addons_gcphone any idea?
Same as above, i got “Appels sur un service non enregistre” error… When i call the taxi nothing happen. I have NOT esx_taxi installed. Does anyone know how to fix it?
Can you tell us since there is no more answer about Taxi won’t start driving after we sit in? I made all the changes but still no effect when a put a direction on my map…
Alright I figured the code out, however, whenever a Taxi is ordered, it appears at the depot, and sits there revving its engine but not actually moving.
EDIT: So I see a lot of people are having this issue. Avoid this script. It is abandoned and doesn’t work at all.
Hi, did you solve your problem?
I’m with the same …
Mine works well with esx_phone3, very well!
So I’m not sure if reported yet but if you call from Paleto Bay The taxi spawns for a split second and then the taxi teleports to the city and doesn’t move
Look for the code in esx_taxi that registers the taxi number and copy it to ESX aitaxi
config.json me
gcphone\html\static\config
{
"reseau": "Mix Server",
"warningMessageCount": 250,
"themeColor": "#303f9f",
"colors": [
"#EF5350",
"#EC407A",
"#AB47BC",
"#7E57C2",
"#5C6BC0",
"#42A5F5",
"#29B6F6",
"#26C6DA",
"#26A69A",
"#66BB6A",
"#9CCC65",
"#D4E157",
"#FFCA28",
"#FFA726",
"#FF7043",
"#8D6E63",
"#78909C"
],
"useFormatNumberFrance": true,
"useWebRTCVocal": false,
"RTCConfig": {
"iceServers": [{
"urls": ["turn:gannon.ovh"],
"username": "jojo",
"credential": "pass"
}]
},
"//": "REQUIRE https://github.com/citizenfx/screenshot-basic or set false",
"enableTakePhoto": true,
"fileUploadService_Url": "https://wew.wtf/upload.php",
"fileUploadService_Field": "files[]",
"background": {
"Calvin & Hobbes": "back001.jpg",
"Destiny": "back002.jpg",
"Stormtrooper": "back003.jpg",
"Custom URL": "URL"
},
"background_default": {
"label": "Calvin & Hobbes",
"value": "back001.jpg"
},
"coque": {
"Sansumg S8": "s8.png",
"Iphone X": "iphonex.png",
"Brick Base": "base.png",
"Transparent": "transparent.png"
},
"coque_default": {
"label": "Sansumg S8",
"value": "s8.png"
},
"serviceCall": [{
"display": "Police",
"icon": "/html/static/img/icons_app/police.png",
"subMenu": [{
"title": "Envoyer un message",
"eventName": "esx_addons_gcphone:call",
"type": {
"number": "police"
}
},
{
"title": "Appeler le standard",
"eventName": "gcphone:autoCallNumber",
"type": {
"number": "911"
}
}
]
},
{
"display": "Taxi",
"backgroundColor": "yellow",
"subMenu": [
{
"title": "เรียกแท็กซี่",
"eventName": "esx_addons_gcphone:call",
"type": {
"number": "taxi",
"message": "ฉันต้องการนั่ง"
}
},
{
"title": "ยกเลิกแท็กซี่",
"eventName": "esx_addons_gcphone:call",
"type": {
"number": "taxi",
"message": "ยกเลิก"
}
}
]
},
{
"display": "Ambulance",
"backgroundColor": "red",
"subMenu": [{
"title": "Envoyer un message",
"eventName": "esx_addons_gcphone:call",
"type": {
"number": "ambulance"
}
}]
}
],
"defaultContacts": [{
"number": "ambulance",
"display": "Ambulance",
"icon": "/html/static/img/icons_app/bank.png"
},
{
"number": "police",
"display": "Police",
"backgroundColor": "blue",
"letter": "P"
}
],
"apps": [{
"name": "Twitter",
"fr_FR__name": "Twitter",
"en_US__name": "Twitter",
"de_DE__name": "Twitter",
"pl_PL__name": "Twitter",
"es_ES__name": "Twitter",
"icons": "/html/static/img/icons_app/twitter.png",
"routeName": "twitter.splash",
"inHomePage": true
},
{
"name": "โทรหา",
"fr_FR__name": "Téléphone",
"cs_CZ__name": "Telefon",
"en_US__name": "Phone",
"de_DE__name": "Telefon",
"pl_PL__name": "Telefon",
"es_ES__name": "llamar",
"icons": "/html/static/img/icons_app/call.png",
"routeName": "appels",
"inHomePage": true
},
{
"name": "ข้อความ",
"fr_FR__name": "Messages",
"en_US__name": "Messages",
"cs_CZ__name": "Zprávy",
"de_DE__name": "Nachrichten",
"pl_PL__name": "Wiadomości",
"es_ES__name": "Mensajes",
"icons": "/html/static/img/icons_app/sms.png",
"routeName": "messages",
"inHomePage": true,
"puceRef": "nbMessagesUnread"
},
{
"name": "เบอร์ติดต่อ",
"fr_FR__name": "Contacts",
"en_US__name": "Contacts",
"cs_CZ__name": "Kontakty",
"de_DE__name": "Kontakte",
"pl_PL__name": "Kontakty",
"es_ES__name": "Contactos",
"icons": "/html/static/img/icons_app/contacts.png",
"routeName": "contacts",
"inHomePage": true
},
{
"name": "ตั้งค่า",
"fr_FR__name": "Paramètres",
"en_US__name": "System",
"cs_CZ__name": "Nastavení",
"de_DE__name": "Einstellungen",
"pl_PL__name": "Ustawienia",
"es_ES__name": "Ajustes",
"icons": "/html/static/img/icons_app/settings.png",
"routeName": "parametre",
"inHomePage": true
},
{
"name": "ธนาคาร",
"fr_FR__name": "Banque",
"en_US__name": "Bankmanager",
"cs_CZ__name": "Banka",
"de_DE__name": "Bank",
"pl_PL__name": "Lawka",
"es_ES__name": "Banquillo",
"icons": "/html/static/img/icons_app/bank.png",
"routeName": "bank",
"inHomePage": false
},
{
"name": "Bourse",
"fr_FR__name": "Bourse",
"cs_CZ__name": "Burza",
"en_US__name": "Stock Market",
"de_DE__name": "Börse",
"icons": "/html/static/img/icons_app/bourse.png",
"routeName": "bourse",
"enabled": true
},
{
"name": "กล้อง",
"fr_FR__name": "Photo",
"cs_CZ__name": "Fotoaparát",
"en_US__name": "Camera",
"de_DE__name": "Kamera",
"pl_PL__name": "Kamera",
"es_ES__name": "Cámara",
"icons": "/html/static/img/icons_app/photo.png",
"routeName": "photo"
},
{
"name": "Dark Chat",
"fr_FR__name": "Dark Chat",
"en_US__name": "Dark Chat",
"de_DE__name": "Dark Net",
"pl_PL__name": "Czat czarny",
"es_ES__name": "Chat Oscuro",
"icons": "/html/static/img/icons_app/tchat.png",
"routeName": "tchat"
},
{
"name": "9GAG",
"icons": "/html/static/img/icons_app/9gag.png",
"routeName": "9gag"
}
],
"defaultLanguage": "th_TH",
"language": {
"th_TH": {
"NAME": "Thai",
"PHONE_WARNING_MESSAGE": "memento",
"PHONE_WARNING_MESSAGE_MESS": "news",
"CONFIRM": "รับ",
"CANCEL": "ยกเลิก",
"APP_CONFIG_TITLE": "parameter",
"APP_CONFIG_MY_MUNBER": "เบอร์ของฉัน",
"APP_CONFIG_WALLPAPER": "พื้นหลัง",
"APP_CONFIG_CASE": "ฝา เครื่อง",
"APP_CONFIG_ZOOM": "ซูม",
"APP_CONFIG_VOLUME": "เสียง",
"APP_CONFIG_LANGUAGE": "ภาษา",
"APP_CONFIG_MOUSE_SUPPORT": "ใช้งาน เมาส์",
"APP_CONFIG_RESET": "ลบข้อมูลทิ้ง",
"APP_CONFIG_RESET_CONFIRM": "ลบทั้งหมด",
"APP_PHONE_CALL": "โทรหา",
"APP_PHONE_DELETE": "ลบ",
"APP_PHONE_DELETE_ALL": "ลบทั้งหมด",
"APP_PHONE_TITLE": "เบอร์โทรศัพท์",
"APP_PHONE_MENU_FAVORITES": "ชื่นชอบ",
"APP_PHONE_MENU_RECENTS": "ล่าสุด",
"APP_PHONE_MENU_CONTACTS": "เบอร์ติดต่อ",
"APP_PHONE_ENTER_NUMBER": "ใส่ตัวเลข",
"APP_PHONE_NUMBER_HIDDEN": "ไม่เปิดเผย",
"APP_PHONE_NUMBER_UNKNOWN": "ไม่ทราบ",
"APP_PHONE_CALL_ANONYMOUS": "ไม่เปิดเผย",
"APP_BANK_TITLE": "bench",
"APP_BOURSE_TITLE": "stock exchange",
"APP_CONTACT_TITLE": "contact details",
"APP_CONTACT_NEW": "New contact",
"APP_CONTACT_EDIT": "Change the contact",
"APP_CONTACT_SAVE": "registration",
"APP_CONTACT_CANCEL": "abort",
"APP_CONTACT_DELETE": "Delete",
"APP_CONTACT_LABEL_NAME": "First name - Last name",
"APP_CONTACT_LABEL_NUMBER": "number",
"APP_MESSAGE_TITLE": "news",
"APP_MESSAGE_NEW_MESSAGE": "New Message",
"APP_MESSAGE_ERASE_CONVERSATION": "Delete the call",
"APP_MESSAGE_ERASE_ALL_CONVERSATIONS": "Delete all conv.",
"APP_MESSAGE_SEND_GPS": "Send GPS coupling",
"APP_MESSAGE_SET_GPS": "GPS position",
"APP_MESSAGE_ZOOM_IMG": "Enlarge",
"APP_MESSAGE_DELETE": "Delete",
"APP_MESSAGE_SMS": "text message",
"APP_MESSAGE_CONTACT_TITLE": "contacts",
"APP_MESSAGE_CONTRACT_ENTER_NUMBER": "Enter a number",
"APP_MESSAGE_PLACEHOLDER_ENTER_MESSAGE": "Send a message",
"APP_DARKTCHAT_TITLE": "Dark Chat",
"APP_DARKTCHAT_NEW_CHANNEL": "Add a channel",
"APP_DARKTCHAT_DELETE_CHANNEL": "Delete the channel",
"APP_DARKTCHAT_CANCEL": "abort",
"APP_DARKTCHAT_PLACEHOLDER_ENTER_MESSAGE": "Enter a message",
"APP_TWITTER_NAME": "Twitter",
"APP_TWITTER_VIEW_TWITTER": "Twitter",
"APP_TWITTER_VIEW_TOP_TWEETS": "top tweets",
"APP_TWITTER_VIEW_TWEETER": "tweets",
"APP_TWITTER_VIEW_SETTING": "parameter",
"APP_TWITTER_NEW_ACCOUNT_USERNAME": "Username (>= 4)",
"APP_TWITTER_NEW_ACCOUNT_PASSWORD": "Password (>= 6)",
"APP_TWITTER_NEW_ACCOUNT_PASSWORD_CONFIRM": "Confirm password",
"APP_TWITTER_NEW_ACCOUNT_AVATAR": "URL of your avatar",
"APP_TWITTER_PLACEHOLDER_MESSAGE": "What's the matter with you?",
"APP_TWITTER_BUTTON_ACTION_TWEETER": "Tweeter",
"APP_TWITTER_ACCOUNT_LOGIN": "Log in to the website",
"APP_TWITTER_ACCOUNT_LOGOUT": "Disconnect from location",
"APP_TWITTER_ACCOUNT_PARAM": "My account",
"APP_TWITTER_ACCOUNT_AVATAR": "Changing the Avatar",
"APP_TWITTER_ACCOUNT_CHANGE_PASSWORD": "Change password",
"APP_TWITTER_ACCOUNT_NEW": "New account",
"APP_TWIITER_ACCOUNT_SAVE": "registration",
"APP_TWIITER_ACCOUNT_CREATE": "Create the account",
"APP_TWIITER_ACCOUNT_CANCEL": "abort",
"APP_TWITTER_ACCOUNT_USERNAME": "username",
"APP_TWITTER_ACCOUNT_PASSWORD": "password",
"APP_TWITTER_NOTIFICATION": "notification",
"APP_TWITTER_NOTIFICATION_WHEN": "To be notified",
"APP_TWITTER_NOTIFICATION_ALL": "All News",
"APP_TWITTER_NOTIFICATION_MENTION": "Just mention",
"APP_TWITTER_NOTIFICATION_NEVER": "Nobody",
"APP_TWITTER_NOTIFICATION_SOUND": "Play a sound",
"APP_TWITTER_NOTIFICATION_SOUND_YES": "Yes",
"APP_TWITTER_NOTIFICATION_SOUND_NO": "No",
"APP_TWITTER_NOTIF_ACCOUNT_CREATE_SUCCESS": "Your Twitter account has been created.",
"APP_TWITTER_NOTIF_ACCOUNT_CREATE_ERROR": "Your Twitter account could not be created (username already used?)",
"APP_TWITTER_NOTIF_LOGIN_SUCCESS": "You are connected to Twitter.",
"APP_TWITTER_NOTIF_LOGIN_ERROR": "Invalid account / passwords",
"APP_TWITTER_NOTIF_AVATAR_SUCCESS": "Your avatar has been changed!",
"APP_TWITTER_NOTIF_NEW_PASSWORD_SUCCESS": "Your password has been changed.",
"APP_TWITTER_NOTIF_NEW_PASSWORD_ERROR": "Oops.... Your password could not be changed.",
"APP_TWITTER_NOTIF_NEW_PASSWORD_MISS_MATCH": "Passwords do not match",
"APP_TWITTER_NOTIF_NEW_PASSWORD_LENGTH_ERROR": "Password too short",
"TIMEAGO": [
"just now",
["%s second ago", "%s seconds ago"],
["%s minute ago", "%s minutes ago"],
["%s hour ago", "%s hours ago"],
["%s day ago", "%s days ago"],
["%s week ago", "%s weeks ago"],
["%s month ago", "%s months ago"],
["%s year ago", "%s years ago"]
]
},
"en_US": {
"NAME": "English",
"PHONE_WARNING_MESSAGE": "memento",
"PHONE_WARNING_MESSAGE_MESS": "news",
"CONFIRM": "Accept",
"CANCEL": "abort",
"APP_CONFIG_TITLE": "parameter",
"APP_CONFIG_MY_MUNBER": "My number",
"APP_CONFIG_WALLPAPER": "wallpaper",
"APP_CONFIG_CASE": "telephone cover",
"APP_CONFIG_ZOOM": "zoom",
"APP_CONFIG_VOLUME": "volume",
"APP_CONFIG_LANGUAGE": "Language",
"APP_CONFIG_MOUSE_SUPPORT": "Mouse control",
"APP_CONFIG_RESET": "format",
"APP_CONFIG_RESET_CONFIRM": "DELETE ALL",
"APP_PHONE_CALL": "call",
"APP_PHONE_DELETE": "Delete",
"APP_PHONE_DELETE_ALL": "Delete all.",
"APP_PHONE_TITLE": "Telephone number",
"APP_PHONE_MENU_FAVORITES": "favourites",
"APP_PHONE_MENU_RECENTS": "Newest",
"APP_PHONE_MENU_CONTACTS": "contacts",
"APP_PHONE_ENTER_NUMBER": "Enter a number",
"APP_BANK_TITLE": "bench",
"APP_BOURSE_TITLE": "stock exchange",
"APP_CONTACT_TITLE": "contact details",
"APP_CONTACT_NEW": "New contact",
"APP_CONTACT_EDIT": "Change the contact",
"APP_CONTACT_SAVE": "registration",
"APP_CONTACT_CANCEL": "abort",
"APP_CONTACT_DELETE": "Delete",
"APP_CONTACT_LABEL_NAME": "First name - Last name",
"APP_CONTACT_LABEL_NUMBER": "number",
"APP_MESSAGE_TITLE": "news",
"APP_MESSAGE_NEW_MESSAGE": "New Message",
"APP_MESSAGE_ERASE_CONVERSATION": "Delete the call",
"APP_MESSAGE_ERASE_ALL_CONVERSATIONS": "Delete all conv.",
"APP_MESSAGE_SEND_GPS": "Send GPS coupling",
"APP_MESSAGE_SET_GPS": "GPS position",
"APP_MESSAGE_ZOOM_IMG": "Enlarge",
"APP_MESSAGE_DELETE": "Delete",
"APP_MESSAGE_SMS": "text message",
"APP_MESSAGE_CONTACT_TITLE": "contacts",
"APP_MESSAGE_CONTRACT_ENTER_NUMBER": "Enter a number",
"APP_MESSAGE_PLACEHOLDER_ENTER_MESSAGE": "Send a message",
"APP_DARKTCHAT_TITLE": "Dark Chat",
"APP_DARKTCHAT_NEW_CHANNEL": "Add a channel",
"APP_DARKTCHAT_DELETE_CHANNEL": "Delete the channel",
"APP_DARKTCHAT_CANCEL": "abort",
"APP_DARKTCHAT_PLACEHOLDER_ENTER_MESSAGE": "Enter a message",
"APP_TWITTER_NAME": "Twitter",
"APP_TWITTER_VIEW_TWITTER": "Twitter",
"APP_TWITTER_VIEW_TOP_TWEETS": "top tweets",
"APP_TWITTER_VIEW_TWEETER": "tweets",
"APP_TWITTER_VIEW_SETTING": "parameter",
"APP_TWITTER_NEW_ACCOUNT_USERNAME": "Username (>= 4)",
"APP_TWITTER_NEW_ACCOUNT_PASSWORD": "Password (>= 6)",
"APP_TWITTER_NEW_ACCOUNT_PASSWORD_CONFIRM": "Confirm password",
"APP_TWITTER_NEW_ACCOUNT_AVATAR": "URL of your avatar",
"APP_TWITTER_PLACEHOLDER_MESSAGE": "What's the matter with you?",
"APP_TWITTER_BUTTON_ACTION_TWEETER": "Tweeter",
"APP_TWITTER_ACCOUNT_LOGIN": "Log in to the website",
"APP_TWITTER_ACCOUNT_LOGOUT": "Disconnect from location",
"APP_TWITTER_ACCOUNT_PARAM": "My account",
"APP_TWITTER_ACCOUNT_AVATAR": "Changing the Avatar",
"APP_TWITTER_ACCOUNT_CHANGE_PASSWORD": "Change password",
"APP_TWITTER_ACCOUNT_NEW": "New account",
"APP_TWIITER_ACCOUNT_SAVE": "registration",
"APP_TWIITER_ACCOUNT_CREATE": "Create the account",
"APP_TWIITER_ACCOUNT_CANCEL": "abort",
"APP_TWITTER_ACCOUNT_USERNAME": "username",
"APP_TWITTER_ACCOUNT_PASSWORD": "password",
"APP_TWITTER_NOTIFICATION": "notification",
"APP_TWITTER_NOTIFICATION_WHEN": "To be notified",
"APP_TWITTER_NOTIFICATION_ALL": "All News",
"APP_TWITTER_NOTIFICATION_MENTION": "Just mention",
"APP_TWITTER_NOTIFICATION_NEVER": "Nobody",
"APP_TWITTER_NOTIFICATION_SOUND": "Play a sound",
"APP_TWITTER_NOTIFICATION_SOUND_YES": "Yes",
"APP_TWITTER_NOTIFICATION_SOUND_NO": "No",
"APP_TWITTER_NOTIF_ACCOUNT_CREATE_SUCCESS": "Your Twitter account has been created.",
"APP_TWITTER_NOTIF_ACCOUNT_CREATE_ERROR": "Your Twitter account could not be created (username already used?)",
"APP_TWITTER_NOTIF_LOGIN_SUCCESS": "You are connected to Twitter.",
"APP_TWITTER_NOTIF_LOGIN_ERROR": "Invalid account / passwords",
"APP_TWITTER_NOTIF_AVATAR_SUCCESS": "Your avatar has been changed!",
"APP_TWITTER_NOTIF_NEW_PASSWORD_SUCCESS": "Your password has been changed.",
"APP_TWITTER_NOTIF_NEW_PASSWORD_ERROR": "Oops.... Your password could not be changed.",
"APP_TWITTER_NOTIF_NEW_PASSWORD_MISS_MATCH": "Passwords do not match",
"APP_TWITTER_NOTIF_NEW_PASSWORD_LENGTH_ERROR": "Password too short",
"TIMEAGO": [
"just now",
["%s second ago", "%s seconds ago"],
["%s minute ago", "%s minutes ago"],
["%s hour ago", "%s hours ago"],
["%s day ago", "%s days ago"],
["%s week ago", "%s weeks ago"],
["%s month ago", "%s months ago"],
["%s year ago", "%s years ago"]
]
}
}
}
hello I own the phone (gemon) after trying several manipulations the taxi does not come to me as if he does not receive the apel I let me send you my config if a person can help me little cool little info I voice well the blip taxi blinking in the map
------error consol-----------
Error running system event handling function for resource esx_addons_gcphone: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server.lua:175: attempt to concatenate a nil value (global 'taxi')
stack traceback:
server.lua:175: in upvalue 'handler'
citizen:/scripting/lua/scheduler.lua:219: in function <citizen:/scripting/lua/scheduler.lua:218>
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
citizen:/scripting/lua/scheduler.lua:218: in function <citizen:/scripting/lua/scheduler.lua:182>
-------config.json gc phone------
}
}
]
},
{
"display": "taxi",
"backgroundColor": "yellow",
"subMenu": [{
"eventName": "esx_addons_gcphone:call",
"type": {
"number": "taxi"
}
},
{
"title": "Taxi besoin",
"eventName": "esx_addons_gcphone:call",
"type": {
"number": "taxi",
"message": "besoin taxi?"
}
},
{
"title": "Taxi annuler",
"eventName": "esx_addons_gcphone:call",
"type": {
"number": "taxi",
"message": "Annuler"
}
}]
}
],
-------server addons gcphone-----
ESX = nil
local PhoneNumbers = {}
-- PhoneNumbers = {
-- ambulance = {
-- type = "ambulance",
-- sources = {
-- ['1'] = true
-- }
-- }
-- }
TriggerEvent('esx:getSharedObject', function(obj)
ESX = obj
end)
function notifyAlertSMS (number, alert, listSrc)
if PhoneNumbers[number] ~= nil then
local mess = 'De #' .. alert.numero .. ' : ' .. alert.message
if alert.coords ~= nil then
mess = mess .. ' ' .. alert.coords.x .. ', ' .. alert.coords.y
end
for k, _ in pairs(listSrc) do
getPhoneNumber(tonumber(k), function (n)
if n ~= nil then
TriggerEvent('gcPhone:_internalAddMessage', number, n, mess, 0, function (smsMess)
TriggerClientEvent("gcPhone:receiveMessage", tonumber(k), smsMess)
end)
end
end)
end
end
end
AddEventHandler('esx_phone:registerNumber', function(number, type, sharePos, hasDispatch, hideNumber, hidePosIfAnon)
print('= INFO = Enregistrement du telephone ' .. number .. ' => ' .. type)
local hideNumber = hideNumber or false
local hidePosIfAnon = hidePosIfAnon or false
PhoneNumbers[number] = {
type = type,
sources = {},
alerts = {}
}
end)
AddEventHandler('esx:setJob', function(source, job, lastJob)
if PhoneNumbers[lastJob.name] ~= nil then
TriggerEvent('esx_addons_gcphone:removeSource', lastJob.name, source)
end
if PhoneNumbers[job.name] ~= nil then
TriggerEvent('esx_addons_gcphone:addSource', job.name, source)
end
end)
AddEventHandler('esx_addons_gcphone:addSource', function(number, source)
PhoneNumbers[number].sources[tostring(source)] = true
end)
AddEventHandler('esx_addons_gcphone:removeSource', function(number, source)
PhoneNumbers[number].sources[tostring(source)] = nil
end)
RegisterServerEvent('gcPhone:sendMessage')
AddEventHandler('gcPhone:sendMessage', function(number, message)
local sourcePlayer = tonumber(source)
if PhoneNumbers[number] ~= nil then
getPhoneNumber(source, function (phone)
notifyAlertSMS(number, {
message = message,
numero = phone,
}, PhoneNumbers[number].sources)
end)
end
end)
RegisterServerEvent('esx_addons_gcphone:startCall')
AddEventHandler('esx_addons_gcphone:startCall', function (number, message, coords)
local source = source
if PhoneNumbers[number] ~= nil then
if number == 'taxi' then
if message == 'cancel' then
TriggerClientEvent('esx_aiTaxi:cancelTaxi', source, true)
else
TriggerClientEvent('esx_aiTaxi:callTaxi', source, coords)
end
else
getPhoneNumber(source, function (phone)
notifyAlertSMS(number, {
message = message,
coords = coords,
numero = phone,
}, PhoneNumbers[number].sources)
end)
end
else
print('Appels sur un service non enregistre => numero : ' .. taxi)
end
end)
AddEventHandler('esx:playerLoaded', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
MySQL.Async.fetchAll('SELECT * FROM users WHERE identifier = @identifier',{
['@identifier'] = xPlayer.identifier
}, function(result)
local phoneNumber = result[1].phone_number
xPlayer.set('phoneNumber', phoneNumber)
if PhoneNumbers[xPlayer.job.name] ~= nil then
TriggerEvent('esx_addons_gcphone:addSource', xPlayer.job.name, source)
end
end)
end)
AddEventHandler('esx:playerDropped', function(source)
local source = source
local xPlayer = ESX.GetPlayerFromId(source)
if PhoneNumbers[xPlayer.job.name] ~= nil then
TriggerEvent('esx_addons_gcphone:removeSource', xPlayer.job.name, source)
end
end)
function getPhoneNumber (source, callback)
local xPlayer = ESX.GetPlayerFromId(source)
if xPlayer == nil then
callback(nil)
end
MySQL.Async.fetchAll('SELECT * FROM users WHERE identifier = @identifier',{
['@identifier'] = xPlayer.identifier
}, function(result)
callback(result[1].phone_number)
end)
end
RegisterServerEvent('esx_phone:send')
AddEventHandler('esx_phone:send', function(number, message, _, coords)
local source = source
if PhoneNumbers[number] ~= nil then
getPhoneNumber(source, function (phone)
notifyAlertSMS(number, {
message = message,
coords = coords,
numero = phone,
}, PhoneNumbers[number].sources)
end)
else
-- print('esx_phone:send | Appels sur un service non enregistre => numero : ' .. number)
end
end)
thank you in advance
The script is functional for me after changing a line, once you get in the taxi you can set the destination :
Change Line 115 from
local vehicle = GetVehiclePedIsIn(playerPed, false)
to
local vehicle = GetVehiclePedIsIn(GetPlayerPed(-1), true)
and thanks to that you can put the point on the map and that the path starts
Hello thank you for the handling but it changes me nothing I managed to corigate my concern consol it says apel worm number unknown … taxi but the taxi does not come to my perso as if he will not receive the order
So i have this work fine but only down issue im having is cancelling a taxi? Not sure why its not cancelling any idea?
not working and i see none explanation how to fix the Appels sur un service non enregistre : taxi
install esx_taxijob
the big problem is the driver who is crazy and drives badly
not working on esx_locksystem ?
thanks, that’s exactly what I was looking for, thank you very much, but if for example I want to put the esx_aitaxi script, AI_Mechanic and AI Tow Truck Remastered. Can I put this code several times in a row? in server.lua…
Appels sur un service non enregistre => numero : taxi
Phone is 100% working, but when i call or cancel a taxi, i get this on my server console. Ive seen at least 3 other people in this thread with the same issue
For fix the
“Appels sur un service non enregistre => numero : taxi”
Just add this :
TriggerEvent(‘esx_phone:registerNumber’, ‘taxi’, ‘Taxi’, true, true)
After
TriggerEvent(‘esx:getSharedObject’, function(obj) ESX = obj end)
In the server main.lua
it’s work for me, but when i enter the taxi, he don’t move to my gps point, and the other fix in the topic didn’t work
i have nothing but issues with this… The taxi shows on map… comes to location… then immediately leaves… getting frustrated i walk away… a message prompts in the top corner to get into car… press it and it teleports you into it… but then never able to select destination. it then creates major resource time warnings and never goes away until i restart the script.