Skip to content

Commit

Permalink
feat(client): Job / Gang Blacklisting + Schema improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
TheiLLeniumStudios committed May 17, 2022
1 parent 3b185ad commit 3132bff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,21 @@ AddEventHandler('onResourceStart', function(resource)
PlayerData = QBCore.Functions.GetPlayerData()
PlayerJob = PlayerData.job
PlayerGang = PlayerData.gang
TriggerEvent("updateJob", PlayerJob.name)
TriggerEvent("updateGang", PlayerGang.name)
end
end)

RegisterNetEvent('QBCore:Client:OnJobUpdate', function(JobInfo)
PlayerData.job = JobInfo
PlayerJob = JobInfo
TriggerEvent("updateJob", PlayerJob.name)
end)

RegisterNetEvent('QBCore:Client:OnGangUpdate', function(GangInfo)
PlayerData.gang = GangInfo
PlayerGang = GangInfo
TriggerEvent("updateGang", PlayerGang.name)
end)

RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
Expand Down
Loading

0 comments on commit 3132bff

Please sign in to comment.