Files
red-valley/resources/[framework]/[addons]/kq_dyno/client/editable/qb.lua
2026-03-29 21:41:17 +03:00

19 lines
611 B
Lua

if Config.qbSettings.enabled then
QBCore = exports['qb-core']:GetCoreObject()
if QBCore.Functions.GetPlayerData() and QBCore.Functions.GetPlayerData().job then
PLAYER_JOB = QBCore.Functions.GetPlayerData().job.name
end
RegisterNetEvent('QBCore:Client:OnPlayerLoaded')
AddEventHandler('QBCore:Client:OnPlayerLoaded', function()
PLAYER_JOB = QBCore.Functions.GetPlayerData().job.name
end)
RegisterNetEvent('QBCore:Client:OnJobUpdate')
AddEventHandler('QBCore:Client:OnJobUpdate', function(JobInfo)
PLAYER_JOB = JobInfo.name
end)
end