🎉 Driving School is released. Read more →
Paid Scripts
Company Manager
Functions & Events
Server
IsBoss

IsBoss

This exports checks if a player is the boss of his job in the company manager

exports.bcs_companymanager:IsBoss(identifier)
VariableTypeDescription
identifierstringThe 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)