Client

The ak47_bridge automatically detects the running framework. You can access these functions by importing the bridge export in your script.

Lua

local Bridge = exports['ak47_bridge']:GetBridge()

Client Player Data

These functions allow you to access player data directly on the client side, updated automatically when framework events fire.

Bridge.GetJob

Returns the local player's job data standardized.

--- @return table { name, label, payment, isboss, grade = { name, level } }
local job = Bridge.GetJob()

if job.name == 'police' then
    print("You are a cop!")
end

Bridge.GetPlayerData

Returns the raw framework-specific player data table (QBCore.PlayerData or ESX PlayerData).

--- @return table
local data = Bridge.GetPlayerData()

Bridge.GetTargetMetaValue

A utility function to fetch metadata from another player (server-side) via a callback. Useful for checking status like isdead or inlaststand on a target player.

Last updated