still the same problem
Show me your files. Without it’s complicated
Replace :
ESX.ShowNotification("Vous n'avez pas de ~r~téléphone~s~")
By :
TriggerEvent('esx:showNotification', "Vous n'avez pas de ~r~téléphone~s~")
changed it but new error
Error resuming coroutine: client/client.lua:142: attempt to index a nil value (global 'ESX')
stack traceback:
client/client.lua:142: in function <client/client.lua:138>
something way to fix?
Can anyone help me add custom images to contacts?
Other solution can be adding call events to phone desktop icons (used for apps now)…
First solution is impossible for me…
For second solution, i was able to create new icon, but im not able to make them work for calls, as im not very familiar with JS…
For first solution, here is concept art
btw if anyone interested to help, we’d like to try create some kind of twitter-like platform, better than darknet, with images, user names, mentions…
- Citizen.CreateThread(function()
- while true do
-
Citizen.Wait(0)
-
if IsControlJustPressed(1, KeyOpenClose) and GetLastInputMethod( 0 ) then
-
TriggerServerEvent('gcphone:getItemAmount', function(qtty)
-
if qtty > 0 then
-
TooglePhone()
-
else
-
TriggerEvent('esx:showNotification', "you not have a ~r~phone~s~")
-
end
-
end, 'phone')
-
end
-
if menuIsOpen == true then
-
for _, value in ipairs(KeyToucheCloseEvent) do
-
if IsControlJustPressed(1, value.code) then
-
endNUIMessage({keyUp = value.event})
-
end
-
end
-
end
-
end
- end)
I have a problem with this; /
Help Please
Dude… Provide more info. You have been here 6 months so you should know that by now.
[Request]
Hello dude! Im so much in love with this script <3
I was wondering if you in anyway couldt convert this script to vRP ??
Would be so awesome!
Btw GREAT WORK!
Hi,
Instead of using a simple color you can add an image.
Add image in /html/static/img/icons_app/
And edit html/static/config/config.json like this
Example :
"serviceCall": [
{
"display": "Agent immobilier",
"backgroundColor": "pink",
"subMenu": [
{
"title": "Envoyer un message",
"eventName": "esx_addons_gcphone:call",
"type": {
"number": "realestateagent"
}
},
Replace by :
"serviceCall": [
{
"display": "Agent immobilier",
"icon": "/html/static/img/icons_app/bank.png",
"subMenu": [
{
"title": "Envoyer un message",
"eventName": "esx_addons_gcphone:call",
"type": {
"number": "realestateagent"
}
},
Hi,
You have tested this : https://github.com/HalCroves/gcphone/wiki/Gcphone-in-item ?
I do not know if it works, I did not try: D
Hello,
Unfortunately I would not convert this addon for VRP. If a charitable soul can do it, it would be perfect
It does not work with ESX
Any errors, screenshots, logs ?
My crystal ball is struggling to connect to your server
Error resuming coroutine: client/client.lua attemp to index a nil value (global 'ESX) client/client.lua in function <client/client.lua>
Add on top of your client/main.lua :
ESX = nil
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
end)
Like this : https://github.com/HalCroves/gcphone/wiki/Gcphone-in-item (Wiki updated)
i didnt use this guide, i write it on my own, but i have phone on item working perfectly.
Ok, work in which file to change the language to another, for example New message on EN?