โ™ป๏ธExports

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


Client Exports

chevron-rightGetGangIDhashtag
exports["origen_ilegal"]:GetGangID()

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

chevron-rightIsHandcuffedhashtag
exports["origen_ilegal"]:IsHandcuffed()

Returns if the user is handcuffed


Server Exports

chevron-rightaddGangExperiencehashtag
--@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

chevron-rightGetGangIDhashtag
exports["origen_ilegal"]:GetGangID(src)

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

chevron-rightGetGangDatahashtag

Returns internal gang data


Client Events

chevron-rightopenMapTerritorieshashtag

Return if you need to Open the Territories Map

chevron-rightOpenGangMenuhashtag

Return if the user need to Open the Gang Menu in client side

Server Events

chevron-rightOpenGangMenuhashtag

Return if the user need to Open the Gang Menu in server side

Last updated