Exports
Client
GetPlayerGang
Retrieves the gang data table for the local player.
local gangData = exports['ak47_gangs']:GetPlayerGang()- Returns:
table- Table containingtag,label,rankid,ranktag, andranklable.
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, ornil.
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, ornil.
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 containingtag,label,rankid,ranktag, andranklable.
On this page