This commit is contained in:
Nordi98 2025-08-04 20:32:58 +02:00
parent f57a27b8df
commit 4b4bb3b0ab
76 changed files with 6389 additions and 0 deletions

View file

@ -0,0 +1,32 @@
if (Config.Framework == "auto" and GetResourceState("qb-core") == "started") or Config.Framework == "QBCore" then
-- Player data
Globals.PlayerData = QBCore.Functions.GetPlayerData()

RegisterNetEvent("QBCore:Client:OnPlayerLoaded")
AddEventHandler("QBCore:Client:OnPlayerLoaded", function()
Globals.PlayerData = QBCore.Functions.GetPlayerData()
TriggerEvent("jg-dealerships:client:update-blips-text-uis")

CreateThread(function()
Wait(1000)
lib.callback.await("jg-dealerships:server:exit-showroom", false)
end)
end)

RegisterNetEvent("QBCore:Client:OnJobUpdate")
AddEventHandler("QBCore:Client:OnJobUpdate", function(job)
Globals.PlayerData.job = job
TriggerEvent("jg-dealerships:client:update-blips-text-uis")
end)

RegisterNetEvent("QBCore:Client:OnGangUpdate")
AddEventHandler("QBCore:Client:OnGangUpdate", function(gang)
Globals.PlayerData.gang = gang
TriggerEvent("jg-dealerships:client:update-blips-text-uis")
end)

-- For jacksam's job creator
RegisterNetEvent("jobs_creator:injectJobs", function(jobs)
QBCore.Jobs = jobs
end)
end