EXPORTS
Exports that you can use to make your scripts compatible with NEON BOSS MENU
ALL THE EXPORTS BELOW ARE CLIENT SIDE ONLY
OpenBossMenu -> This export allows the opening of the boss menu for a specified job or gang. It verifies the player's access rights and opens the menu accordingly.
Export Syntax:
exports['neon-boss']:OpenBossMenu(job, _type)Parameters:
job (string): The job or gang name for which the boss menu will be opened.
Example:
'police','mafia', etc.
_type (string): Specifies whether the entity is a society or a gang. Accepts values:
"society": To open the boss menu for a job-related society."gang": To open the boss menu for a gang.
Functionality:
The function checks the current framework defined in
Config.Framework(esxorqbcore) and retrieves the player's data using eitherESX.GetPlayerData()orQBCore.Functions.GetPlayerData().If
_typeis"society", it looks up the society inConfig.Societiesand checks if the player has the necessary boss-level access for that job.If
_typeis"gang", it checksConfig.Gangsto ensure the player has the appropriate boss-level access for that gang.If the player meets the access requirements, the
OpenBossMenufunction is called with the job or gang name.
Example Usage:
-- Open the boss menu for the 'police' society
exports['neon-boss']:OpenBossMenu('police', 'society')
-- Open the boss menu for the 'ballas' gang
exports['neon-boss']:OpenBossMenu('ballas', 'gang')ALL THE EXPORTS BELOW ARE SERVER SIDE ONLY
GetSocietyData -> This export will return the society data
Example:
RemoveSocietyMoney -> This export will remove money from the society
Example:
AddSocietyMoney -> This export will add money to the society
Example:
Last updated