Gang Level

  • Each Gang have points and every gang start from 0.

  • Every 100 points the laptop will show you a level from 0 to 5: Level 0: 0 - 99 points Level 1: 100 - 199 points Level 2: 200 - 299 points Level 3: 300 - 399 points Level 4: 400 - 499 points Level 5: 500 - X points (Max Level)

Add Gang Level

Use the following event from the server side to add XP to the desired gang:

local gang = "ballas"
local xp = 50
TriggerEvent('av_gangs:addXP',gang,xp)

Remove Gang Level

Use the following event from the server side to remove XP to the desired gang:

local gang = "ballas"
local xp = 50
TriggerEvent('av_gangs:removeXP',gang,xp)

Get Gang Level

You can get a player Gang Level from the server side with the following export:

-- Export returns a number if source is member of a gang or false if not a member.
local level = exports['av_gangs']:getGangLevel(source)
if level then
    print(level) -- it will print a number
end

You can also get gang level from the client side with the following export:

-- Export returns a number if player is member of a gang or false if not a member.
local level = exports['av_gangs']:getGangLevel()
if level then
    print(level) -- it will print a number
end

Last updated