qbcore-framework / qb-core

FiveM RP Framework Core :muscle:
GNU General Public License v3.0
582 stars 962 forks source link

[BUG] #1001

Closed userefe closed 9 months ago

userefe commented 1 year ago

Summary

I give myself mechanic job and it works but it doesn’t work after I restart the mechanic script or when I log out of the server and back in, even still I have mechanic job.

Reproduction

ı use /setjob [ID] [mechanic_bennys] [2] command and it works but after I restart the mechanic script or when I log out of the server and back in or restart the server it doesn't work.

Expected behavior

Active mechanic can use mechanic menu, after restart the mechanic script or active mechanic log out of the server and back in or restart the server.

Actual behavior

after I restart the mechanic script or when I log out of the server and back in or restart the server, even still I have mechanic job. Also unemployed players, polices and players can use mechanic when there is no active mechanic in server. Active mechanic log out and back in server then waow active mechanic can't use mechanic menu and also other players can't use mechanic menu because there is an active mechanic but active mechanic cant use mechanic menu, shame:))

Additional context

https://dosya.co/6rtp3drhxmvs/tgiann-mekanikv2.rar.html

fivem script error cl_bennys lua741 events lua189

Last Updated

today

Custom Resources

tgiann-mekanikv2

Resource Rename

no

userefe commented 1 year ago

solved!!! 741 code line should be on 742 code line and you should add this code ''if PlayerData.job == nil then PlayerData = QBCore.Functions.GetPlayerData() end'' at 741 code line, see you guys.

CashBoi69 commented 1 year ago

how do you open the carry menu in game i cant seem to find a keybind

Bongmasta406 commented 1 year ago

can you please close this Bug report

solved!!! 741 code line should be on 742 code line and you should add this code ''if PlayerData.job == nil then PlayerData = QBCore.Functions.GetPlayerData() end'' at 741 code line, see you guys.

github-actions[bot] commented 9 months ago

This issue has had 60 days of inactivity & will close within 7 days