Exports

List of exports required for developers to integrate this script into their own resources.

Client

No client-side exports available.


Server

The turf system provides simple function exports for interacting with turf wars and gang statistics.

Available Exports

GetLeaderboardData

local leaderboard = exports.vanish_turfs:GetLeaderboardData()

Returns: Array of gang statistics ordered by wins (descending)

{
    {
        id = 1,                    -- Gang database ID
        name = "Ballas",          -- Gang name (or label if GetGangLabel is available)
        totalWins = 15,           -- Total turf wars won
        totalBattles = 20,        -- Total turf wars participated in
        logoUrl = "https://..."   -- Gang logo URL (empty string if not set)
    },
    -- ... more gangs
}

GetActiveTurfs

Returns: Array of currently active turf wars

ForceEndTurf

Parameters:

  • zoneLabel (string) - The zone label to force end

Returns: boolean - Whether the turf was successfully ended

Note: This will trigger reward distribution, stats recording, and respawn logic just like a normal turf completion.

GetGangStats

Parameters:

  • gangName (string) - The gang name to look up

Returns: Gang statistics object or nil if gang not found


Usage Examples

Check Active Turfs

Get Gang Statistics

Display Leaderboard

Last updated