Client

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

local Lib47 = exports['ak47_lib']:GetLibObject()

Client Player Data

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

Lib47.GetJob

Returns the local player's job data standardized.

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

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

Lib47.GetPlayerData

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

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

Lib47.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