Tutorial For GCPhone with call and job message...other

phone
esx_phone
gcphone
call

#245

Hi,
We’ll do it differently, you’re going to list all your plugins :slight_smile:


#246

Hello, i have another question. Everythings works fine but there is one problem, when someone is calling me and im having him saved as contact it still displays number and “unknown” just like i never had this person saved as contact. I guess there is a easy way put notification above map when someone is calling because it works for messages, but where to put ESX.ShowNotification()? when i put this under gcPhone:waitingCall in client.lua its not working, any idea?


#247

Same problem with contact


#248

Hi, yep it’s possible.

For me you can edit this function for add notification when you receive a call:

server.lua

RegisterServerEvent('gcPhone:internal_startCall')

Maybe with :

RegisterServerEvent('gcPhone:internal_startCall')
AddEventHandler('gcPhone:internal_startCall', function(source, phone_number, rtcOffer, extraData)
    ....
   
	print('CALL WITH NUMBER ' .. srcPhone)
    local destPlayer = getIdentifierByPhoneNumber(phone_number)
	
	---
	TriggerClientEvent('esx:showNotification', destPlayer, "test")
	---
	
    local is_valid = destPlayer ~= nil and destPlayer ~= srcIdentifier
	
	...
end)

#249

I must have missed that server event, ill try it.
Thanks!


#250

I have edit my last post (Tutorial For GCPhone with call and job message...other)


#251

I have cleared the cache and yes the icons are all there but they still wont change.


#252

have you added icons also in __resource.lua ? they need to be loaded to show


#253

Hi,

  1. Put your news pictures in in the right folders gcphone/html/static/img
    • icons_app = phone icons
    • coque = phone shell
    • background = wallpaper
  2. If you have rename pictures, you need to go in the file html/static/config/config.json and change name files.
  3. Edit the files gcphone/__resource.lua if you have added a news icons.
  4. Clear cache

#254

Hi again :slight_smile:
FINALLY :smile: I have a progress with this phone.
But I have another problems too :frowning:.
Here is my vendor.js, I was clearing my cache server without any result.
Any ideas what can I do? Can u look on vendor and tell me what should I change in this file?
Thanks :innocent:.


#255

Hi,
Can you test with this vendor.js ?
By cons for the js, do not ask me, I’m a quiche :smile:


#256

If I use your vendor im getting no phone on screen, only player animation.


#257

Anyone able to help me set this up please? considering the tutorial is all in French and i know nothing but English ahah, just need help installing it and making sure it works when people call for EMS, Police,Mechanics etc thanks in advance


#258

I’m having a problem setting the phone buyable from the store.
It’s not working, I have no erros all the code seems fine, added phone into DB items and shops.

Don’t know why its like this


#259

Hi,
Really I have no idea why the phone dyfunction on you server.
Maybe tell with your host.


#260

I have a problem, whn i call police or any job it dosnt arrive the call to the police, any solution?


#261

Any errors or other informations ? Check logs.

Check my version on github and test : https://github.com/HalCroves/gcphone

in your database, do you have import .sql ?


#262

Yes, I did import the .sql, and there is no errors on the console


#263

But your Version dosnt hava a sql file right?


#264

I just downloaded and putted in your version and still dosnt work the police calls