Skip to content

Commit

Permalink
Update main.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
TonybynMp4 committed Oct 7, 2023
1 parent 5f531af commit 0189d28
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local onDuty = QBX.PlayerData.job.onduty
local onDuty = QBX?.PlayerData?.job?.onduty

RegisterNetEvent('QBCore:Client:SetDuty', function(duty)
onDuty = duty
Expand Down Expand Up @@ -338,4 +338,8 @@ CreateThread(function()
}
}
})
end)
end)

AddEventHandler('QBCore:Client:OnPlayerLoaded', function()
onDuty = QBX?.PlayerData?.job?.onduty
end)

0 comments on commit 0189d28

Please sign in to comment.