IsBoss
This exports checks if a player is the boss of his job in the company manager
exports.bcs_companymanager:IsBoss(identifier)
Variable | Type | Description |
---|---|---|
identifier | string | The identifier of the player |
Example
local xPlayer = ESX.GetPlayerFromId(source)
local isBoss = exports.bcs_companymanager:IsBoss(xPlayer.identifier)
local Player = QBCore.Functions.GetPlayer(source)
local isBoss = exports.bcs_companymanager:IsBoss(Player.PlayerData.citizenid)