Usage
--import
local core = Framework.core or exports.bl_bridge:core()
Player
Balance
local player = core.GetPlayer(src)
player.getBalance(type --[['cash' | 'bank']])
player.removeBalance(type, amount)
player.addBalance(type, amount)
- type:
cash
|bank
- amount:
number
Job
local player = core.GetPlayer(src)
player.setJob(job, grade)
local job = player.job
print(job)
--[[
job.name
job.label,
job.onDuty,
job.isBoss,
job.grade.name,
job.grade.label,
job.payment
]]
- job:
string
- grade:
number
- job data:
- name:
string
- label:
string
- onDuty?:
boolean
- isBoss:
boolean
- grade:
- name:
number
- label:
string
- payment?:
number
- name:
- name:
PlayerData
local player = core.GetPlayer(src)
local name = player.name -- char full name
local id = player.id -- char id/citizenid/cid
local gender = player.gender
local dob = player.dob
Core
core.CommandAdd(name, permission, cb)
core.RegisterUsableItem(name, cb)