Client
These exports can only be used on the client-side. Make sure to use them in your client-side script files.
GetPlayerName
exports.it_bridge:GetPlayerName()
Returns the current player's ingame name.
Example
local playerName = exports.it_bridge:GetPlayerName()
print(playerName)
GetCitizenId
exports.it_bridge:GetCitizenId()
Returns the current player's citizen ID. For every framework, the citizen ID is unique.
Example
local citizenId = exports.it_bridge:GetCitizenId()
print(citizenId)
GetPlayerJob
exports.it_bridge:GetPlayerJob()
Returns table containing the current player's job information.
{
grade: 0, -- number
grade_label: "Unemployed", -- string
grade_salary: 0, -- number
isBoss: false, -- boolean
label: "Unemployed", -- string
name: "unemployed", -- string
onDuty: true, -- boolean
}
Example
local job = exports.it_bridge:GetPlayerJob()
print(job.label) -- Unemployed
GetMoney
exports.it_bridge:GetMoney(moneyType)
- moneyType:
string
: The money type. (cash, bank, black_money)
Returns the current player's money amount.
Example
local cash = exports.it_bridge:GetMoney('cash')
print(cash)