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
| Export | Description | Return Type |
|---|---|---|
getZoneData | Get information about the current zone | table |
getGamemodeData | Get information about the current gamemode | table |
isScriptStarted | Check if the FFA script has successfully initialized | boolean |
getCurrentKillStreak | Get the player’s current killstreak count | number |
isInGame | Check if the player is currently in an FFA zone | boolean |
isDead | Check if the player is currently dead in FFA | boolean |
inCombat | Check if the player is currently in combat | boolean |
Usage Examples
Export Details
getZoneData
Returns a table containing all information about the current zone the player is in.getGamemodeData
Returns a table containing all information about the current gamemode the player is using.isScriptStarted
Returns a boolean indicating whether the FFA script has successfully initialized.true if script is initialized, false otherwise
getCurrentKillStreak
Returns the player’s current killstreak count as a number.5)
isInGame
Returns a boolean indicating whether the player is currently in an FFA zone.true if player is in FFA, false otherwise
isDead
Returns a boolean indicating whether the player is currently dead in FFA.true if player is dead, false otherwise
inCombat
Returns a boolean indicating whether the player is currently in combat (recently dealt or received damage).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.

