Skip to main content

FFA Script Exports

The FFA script provides several exports that allow other resources to interact with and retrieve information from the FFA system. This enables seamless integration with your server’s other scripts.
All exports are client-side only and can be used by other client scripts to get information about the current player’s FFA status.

Available Exports

Usage Examples

    Export Details

    getZoneData

    Returns a table containing all information about the current zone the player is in.
    Return Value:

    getGamemodeData

    Returns a table containing all information about the current gamemode the player is using.
    Return Value:

    isScriptStarted

    Returns a boolean indicating whether the FFA script has successfully initialized.
    Return Value: true if script is initialized, false otherwise

    getCurrentKillStreak

    Returns the player’s current killstreak count as a number.
    Return Value: Number representing current killstreak (e.g., 5)

    isInGame

    Returns a boolean indicating whether the player is currently in an FFA zone.
    Return Value: true if player is in FFA, false otherwise

    isDead

    Returns a boolean indicating whether the player is currently dead in FFA.
    Return Value: true if player is dead, false otherwise

    inCombat

    Returns a boolean indicating whether the player is currently in combat (recently dealt or received damage).
    Return Value: true if player is in combat, false otherwise

    Integration Examples

    Disable Features When in FFA

    This example shows how to disable certain features of your server when a player is in FFA:

    Custom Killstreak Rewards

    This example shows how to create custom rewards for killstreaks:
    Remember that these exports only work client-side. If you need to access FFA data on the server, you’ll need to create your own client-to-server event system.