AV Scripts
StoreDiscord
  • Documentation
  • Guides
    • Dealerships
      • Installation
      • Admin Panel
        • All Vehicles
        • Dealerships
        • Auctions
      • Dealership Panel
        • Overview
        • Auctions
        • Employees
        • Orders
        • Payments
        • Showroom
        • Warehouse
        • Pre Owned
        • Settings
      • Buy/Sell Vehicles
      • Catalogue
      • Exports
      • FAQ
    • House Robbery
      • Installation
      • Add Shells
      • Dispatch
      • Exports
      • Weather
      • Minigames
      • Notifications
      • New Houses
      • Object Types
      • Sell Items
    • Illegal Runs
      • Installation
      • Customization
      • Ox Inventory
      • QB Inventory
    • Multicharacter
      • Installation
      • Character Slots
      • Clothes
      • Scenes
        • Previews
      • Exports
      • Weather
    • Paleto Heist
      • Buy here
    • Refund System
      • Installation
        • Inventories
    • Tuning Script
      • Installation
      • Events and Controls
      • Exports
      • Price Multiplier
    • Vehicleshop
      • Installation
      • Admin Panel
      • Addon Vehicles
      • Functions
        • Fuel
        • Keys
        • VIP
        • Weather
      • Garages
      • HUD
      • Society
    • Weather Script
      • Installation
      • Breath Condensation
      • Fog
      • Real Time Sync
      • Exports
    • VIP Script
      • Installation
      • Exports
      • Categories
      • Admin
      • Tebex
      • Free Tokens
  • LAPTOP PACK V3
    • Laptop v3
      • Installation
        • Inventory
        • Cosmo
        • Permissions
        • QBCore
        • Custom Framework/Inventory
        • Phone
        • Translate
      • Browser
      • Terminal
      • Documents
      • APPs Config
      • Exports
    • Boosting
      • Create Profile
      • APP
      • Contracts
      • Dispatch
      • Lockpick Export
      • VIN Export
    • Business
      • Installation
        • Inventories
          • Origen Inventory
            • ESX
            • QBCore
          • OX Inventory
          • QB/PS/LJ Inventory
          • Quasar Inventory
            • ESX
            • QBCore
          • Codem Inventory
          • Tgiann Inventory
        • ESX
      • Admin Panel
        • Create Zones
        • Edit Zones
      • Config
        • Animations
        • Blips
        • Buttons
        • Crafting
        • Effects
        • Events
          • Items
          • Zones
        • Logs
          • Custom Logs
        • Permissions
      • Exports
      • Banking Scripts
      • Multijobs
    • Cameras
      • Installation
        • Vehicle Cameras
      • Place Camera
      • Job Cameras
    • Drugs
      • Installation
      • Admin Panel
      • APP
      • Tables
      • Labs
        • PC
        • Raids
      • Alert Cops
      • Shells
      • Exports
    • Gangs
      • Installation
      • Admin Panel
        • Gangs
        • Whitelist
      • Properties
      • Register Gang
      • APP
        • Members
        • Settings
        • Missions
        • Blackmarket
        • Properties
      • Graffitis
      • Missions
      • Gang NPC
      • Shells
      • Exports
      • Labs
    • Groups
      • Events
      • Exports
    • Music
      • Installation
      • Music Labels
      • APP
        • Search Music
        • Playlists
        • Headphones
      • CDs
    • Racing
      • Installation
        • Permissions
        • Discord Logs
        • Addon Vehicles
      • Admin Panel
      • Categories
      • Events
      • Exports
      • Personal Settings
      • The Underground
    • Custom APPs
    • Discord Support
Powered by GitBook
On this page
  • Client Exports
  • Server Exports
  1. Laptop Pack
  2. AV Gangs

Exports

Client Exports

  • Get player gang info:

-- Returns a table with player Gang info
exports['av_gangs']:getGang()
  • Get current zone:

-- If close to a graffiti it will return a string with the zone name
exports['av_gangs']:getZone()
  • Verify if current zone is controlled by the player gang:

-- Returns true if inside a zone controlled by your gang
exports['av_gangs']:myZone()
  • Get player gang level:

-- Returns number or false if not gang member
exports['av_gangs']:getGangLevel()

Server Exports

  • Get player gang info:

-- Returns a table with player gang info or false
-- player name, gang name, isBoss, gang label
exports['av_gangs']:getGang(source)
  • Get gang members count:

-- Returns number
local gangName = "ballas"
exports['av_gangs']:getMembersCount(gangName)
  • Get player gang level:

-- Returns number or false if player isn't gang member
exports['av_gangs']:getGangLevel(source)
  • Get gang graffiti count:

-- Returns current number of graffitis a gang have or 0
exports['av_gangs']:getGraffitiCount(gangName)
  • Verify if a gang exists (use it before registering a new one):

-- returns true/false
-- use gang label (example: Los Santos Vagos)
exports['av_gangs']:verifyGang(label)
  • Register a gang from a different resource:

-- Send the gang label (ex: Los Santos Vagos)
-- returns the gang name without spaces (ex: lossantosvagos), use it to set gang boss
local gangName = exports['av_gangs']:registerGang(label)
  • Set a player as gang boss:

-- exports['av_gangs']:setBoss(source,identifier,gangName,gangLabel)
local identifier = exports['av_laptop']:getIdentifier(source)
local gangLabel = "Los Santos Vagos"
local gangName = exports['av_gangs']:registerGang(gangLabel)
exports['av_gangs']:setBoss(source,identifier,gangName,gangLabel)
  • Remove a member from an external resource:

-- exports['av_gangs']:removeMember(identifier,gangName)
local identifier = exports['av_laptop']:getIdentifier(source)
local gang = exports['av_gangs']:getGang(source)
if gang and gang.name then
    local res = exports['av_gangs']:removeMember(identifier,gang.name)
    print(res) -- returns true/false
end

Last updated 1 year ago