N3MTV / gcphone

Téléphone pour FiveM
104 stars 225 forks source link

mysql jobs #104

Closed elnax90 closed 5 years ago

elnax90 commented 5 years ago

gcphone is seaching job @ job_grades table insted of jobs table.

where do i change this in the configs?
i cant find it anywhere!

waiting your news! Thank you!

Gannon001 commented 5 years ago

Sorry i don't understand.

I don't read table job or job_grades

elnax90 commented 5 years ago

Im using this to add a favorite contact to a job that is a car dealer. so if there's a player with the job cardealer online and someone try to contact him via the favorite contact in gcphone he will recieve a msg.

in the config i added: { "number": "cardealer", ------ this is the job label "display": "boss", ------------this is the job name
"icon": "/html/static/img/icons_app/psp.png" }

but it doesnt work that way... so i try with the job_name and label from job_grades table.

and gcphone worked. the problem is my job grade label has multiple labels for same job for exemple:

job:cardealer label:novice job:cardealer label:boss

and in the phone this looks wrong.

im hoping you did understand my problem now! @Gannon001 thanks

Gannon001 commented 5 years ago

I don't read any table except gcphone table.

For munber of society, i catch event 'esx_phone:registerNumber' in esx_addons_gcphone

Exemple for cardealer: https://github.com/ESX-Org/esx_vehicleshop/blob/ccf027261b72984722c78901ac1f788ebc933123/server/main.lua#L7

elnax90 commented 5 years ago

do i need esx_phone instaled for gcphone catch that? TriggerEvent('esx_phone:registerNumber', 'cardealer', _U('dealer_customers'), false, false) thanks

Gannon001 commented 5 years ago

No need esx_phone Send message to spécifique grade jobs is not possible currently. But you can create this feature.

elnax90 commented 5 years ago

I dont need gcphone to work with job grades. i need it to work with normal jobs. if i uncomment that line i get this msg @ server console

==== Enregistment du telephone cardealer = Clientes do STAND error2

Gannon001 commented 5 years ago

try this

https://github.com/N3MTV/gcphone/issues/93#issuecomment-481295023