Exports

Client

GetPlayerGang

Retrieves the gang data table for the local player.

local gangData = exports['ak47_gangs']:GetPlayerGang()
  • Returns: table - Table containing tag, label, rankid, ranktag, and ranklable.

GetCurrentTurf

Retrieves the turf tag at the local player's current location.

local turfTag = exports['ak47_gangs']:GetCurrentTurf()
  • Returns: string - Gang tag associated with the turf, or nil.

GetTurfAtCoord

Retrieves the turf tag at specified coordinates.

local turfTag = exports['ak47_gangs']:GetTurfAtCoord(coords)
Parameter Type Required Description
coords vector3 Yes World coordinates to check
  • Returns: string - Gang tag associated with the coordinates, or nil.

Server

GetPlayerGang

Retrieves the gang data table for a specified player ID.

local gangData = exports['ak47_gangs']:GetPlayerGang(source)
Parameter Type Required Description
source number Yes Server ID of the player
  • Returns: table - Table containing tag, label, rankid, ranktag, and ranklable.