esx_gangs edit for compatibility
If using Config.GangSystem = 'esx'
, you must make this small edit to your esx_gangs
resource.
Open esx_gangs/server.lua
and scroll all the way to the bottom and add a new line.
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)