Exports

Server and Client side exports for your other scripts

Client Side

Event used to open boss menu

TriggerServerEvent("ez_society:server:bossMenu")

-- The authentication of being a boss is done on server side by the script. 

Server Side

Check if grade is boss

-- Returns true if boss otherwise false
exports["ez_society"]:IsBoss(society, grade)

-- Example: local isBoss = exports["ez_society"]:IsBoss("police", 7)

Check if grade is recruitment rank

-- Returns true if rec rank otherwise false
exports["ez_society"]:IsRecrank(society, grade)

-- Example: local isBoss = exports["ez_society"]:IsRecrank("police", 3)

Adding/ Removing Money to Society Bank

-- Returns true when completed, else false if society does not exist
exports["ez_society"]:SocietyMoneyAdd(society, amount)

Here is the export to add or remove money from the society. To remove you need to make the amount negative. Below are some examples:

Removing 100 from police

exports["ez_society"]:SocietyMoneyAdd("police", -100)

Adding 100 to police

exports["ez_society"]:SocietyMoneyAdd("police", 100)

Checking society money balance

-- Returns amount of money when completed, else false if society does not exist
local money = exports["ez_society"]:SocietyMoney(society)

Here is the export to view money of a society. Here is an example:

local money = exports["ez_society"]:SocietyMoney("police")

Last updated

Was this helpful?