Guides provide step-by-step instructions
If using Config.GangSystem = 'esx' , you must make this small edit to your esx_gangs resource.
Config.GangSystem = 'esx'
esx_gangs
Open esx_gangs/server.lua and scroll all the way to the bottom and add a new line.
esx_gangs/server.lua
Add the following code to the bottom of the server lua:
RegisterNetEvent('esx_gangs:server:KickPlayer', function(id) if type(source) == "number" and source > 0 then return end FirePlayer(id) end) RegisterNetEvent('esx_gangs:server:InvitePlayer', function(id, gang) if type(source) == "number" and source > 0 then return end InvitePlayer(id, gang) end)
Give yourself gpadmin
Open phone and fill the gang details and ServerID of the gang leader
Now you can see that the gang is created successfully
NOTE: You need use the gang data from qb-core/shared/gang.lua for Config.GangSystem ='qb'
Config.GangSystem ='qb'
Last updated 1 year ago