♻️Exports

With these exports, you will be able to manipulate the system from scripts external to it.


Client Exports

GetGangID
exports["origen_ilegal"]:GetGangID()

Return the user's gang ID, if they are not in any gang, return false

IsHandcuffed
exports["origen_ilegal"]:IsHandcuffed()

Returns if the user is handcuffed


Server Exports

addGangExperience
--@param source The player source
--@param amount The amount of experience to add
--@param stat The stat to add the experience to (optional) if not provided it will add to the gang experience, availed stats: maria, meta, coca, weapons
exports["origen_ilegal"]:addGangExperience(src, amount, stat)

Add experience to a gang, return true if the experience was added and false if not

GetGangID
exports["origen_ilegal"]:GetGangID(src)

Return the user's gang ID; if they are not in any gang, return false

GetGangData
--returns {label, focus, territoryCount, membersCount, members, gangLevel, gangExperience}
exports["origen_ilegal"]:GetGangData(gangID)

Returns internal gang data

Last updated