mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-11-23 07:48:35 +00:00
duty hotfix
fixed onDuty not being picked up on script restarts
This commit is contained in:
1 parent
3722d4b2ba
commit
ded2fbb219
1 file changed
+1
-1
+1
-1
@@ -23,7 +23,7 @@ AddEventHandler('QBCore:Client:SetDuty', function(duty)
|
||||
end)
|
||||
|
||||
--Keeps track of duty on script restarts
|
||||
AddEventHandler('onResourceStart', function(resource) if GetCurrentResourceName() == resource then QBCore.Functions.GetPlayerData(function(PlayerData) PlayerJob = PlayerData.job end) end end)
|
||||
AddEventHandler('onResourceStart', function(resource) if GetCurrentResourceName() == resource then QBCore.Functions.GetPlayerData(function(PlayerData) PlayerJob = PlayerData.job onDuty = PlayerJob.onduty end) end end)
|
||||
|
||||
Citizen.CreateThread(function()
|
||||
local jobroles = {}
|
||||
|
||||
Reference in new issue
Block a user