Overview
Supported Frameworks
Framework
Resource Name
Config value
Detection Order
Runtime Value
Forcing a Framework
How the Bridge Works
Last updated
-- Shared (client and server)
print(KOJA.Framework) -- "esx" | "qb" | "custom"Config.Framework = "qb" -- always use QBCore, even if ESX is also running-- Your script:
local job = KOJA.Server.GetPlayerJob(source)
-- Returns: { name = "police", grade = 2 }
-- On ESX this calls: ESX.GetPlayerFromId(source).getJob()
-- On QBCore this calls: QBCore.Functions.GetPlayer(source).PlayerData.job