Open the admin panel using the Config.AdminCommand.
Go to Gangs tab and click the New Gang button on the top right corner
In the new menu set the Gang Name, make sure to not use any special characters, the Boss ID is optional, you can set the Gang Boss later.
If you want to setup the Gang Boss or add a new one select the gang from the Gangs dropdown menu and go to Settings.
You can use the following export on the server side and trigger it from your own resource:
If bossId is null the export will ignore it and it won't assign any boss to the gang, you can assign it using the Admin Panel.
local name ="Los Santos Vagos"local bossId =1-- optionallocal res = exports['av_gangs']:registerGang(name,bossId)if res thenprint("Gang created")elseprint("Gang already exists")end