The entry point for this library. The CFTools client is used to interact with the CFTools Data API and provides methods to perform various actions such as looking up users, listing bans, and sending messages to players. See https://developer.cftools.cloud/documentation/data-api for more information on the CFTools Data API.

Constructors

Properties

authProvider: Authentication

The authentication provider used by the client to authenticate with the CFTools Data API.

cacheConfiguration: CacheConfiguration = defaultCacheConfiguration

The cache configuration in use by the client.

cacheManager: CacheManager

The cache manager used by the client to cache responses from the CFTools Data API.

cachingEnabled: boolean = true

Whether caching is enabled for the client.

The logger used by the client to log messages.

requestClient: RequestClient

The request client used by the client to make requests to the CFTools Data API.

useAccountCreationAPI: boolean = false

Whether the account creation API is enabled for the client.

Methods

  • Perform multiple GameLabs actions in a single request. The GameLabs mod is required to be installed on the server for these actions to work. This counts for any GameLabs action, including teleporting players, spawning items, and more.

    Parameters

    Returns Promise<void>

    Thrown if the batch actions have less than one action.

    Thrown if the batch actions have more than ten actions.

  • Set the current time of the world on the server.

    The hour parameter is the hour of the day to set the world time to. The minute parameter is the minute of the hour to set the world time to.

    The hour must be between 0 and 24, and the minute must be between 0 and 60.

    The mod GameLabs is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the world time hour or minute is out of bounds.

    postGameLabsAction for more information.

  • Set the current weather of the world on the server.

    • The fogDensity parameter is a float between 0 and 1, representing the fog density.
    • The overcast parameter is a float between 0 and 1, representing the overcast.
    • The rainIntensity parameter is a float between 0 and 1, representing the rain intensity.
    • The windIntensity parameter is an integer greater than 0, representing the wind intensity.

    The mod GameLabs is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the world weather options are out of bounds.

    postGameLabsAction for more information.

  • Clear the territory flag of a territory that is currently spawned on the server.

    The identifier parameter is the entity ID of the territory flag to clear.

    The mod GameLabs is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the territory flag is not found.

    postGameLabsAction for more information.

  • Creates a ban on a banlist. The identifier parameter can be a CFTools ID or an IPv4 address. If the identifier parameter is an AnyPlayerId, it will be resolved to a CFTools ID before being used in the request.

    Parameters

    Returns Promise<void>

    Thrown if the ban reason exceeds 128 characters.

    for more information.

  • Deletes a ban from a banlist.

    Parameters

    Returns Promise<void>

    Thrown if the ban being deleted does not exist.

    Thrown if the ban ID is not provided.

    for more information.

  • Delete an object that is currently spawned on the server.

    The identifier parameter is the entity ID of the object to delete.

    The mod GameLabs is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the object is not found.

    postGameLabsAction for more information.

  • Deletes a player from the priority queue list/bucket.

    The playerId parameter can be a CFTools ID or a dynamic player ID. If the playerId parameter is a dynamic player ID, it will be resolved to a CFTools ID before being used in the request.

    Parameters

    Returns Promise<void>

    • getPriorityQueue for more information on getting the priority queue.
    • postPriorityQueue for more information on posting to the priority queue.
    • for more information on the CFTools API endpoint.

    Thrown if the player is not found in the priority queue.

    Thrown if the player is not found in the priority queue.

  • Delete a vehicle that is currently spawned on the server.

    The identifier parameter is the entity ID of the vehicle to delete.

    The mod GameLabs is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the vehicle is not found.

    postGameLabsAction for more information.

  • Removes a player from the whitelist.

    The playerId parameter can be a CFTools ID or a dynamic player ID. If the playerId parameter is a dynamic player ID, it will be resolved to a CFTools ID before being used in the request.

    Parameters

    Returns Promise<void>

    Thrown if the player is not found in the whitelist.

    Thrown if the player is not found in the whitelist.

    • getWhitelist for more information on getting the whitelist.
    • postWhitelist for more information on posting to the whitelist.
    • for more information.
  • Explode a player that is currently connected to the server.

    The target parameter can be a CFTools ID, a dynamic player ID, or a session id. If the target parameter is a dynamic player ID, it will be resolved to a session id
    before being used in the request.

    The mod GameLabs is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the player being exploded is not online.

    postGameLabsAction for more information.

  • Explode a vehicle that is currently spawned on the server.

    The identifier parameter is the entity ID of the vehicle to explode.

    The mod GameLabs is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the vehicle is not found.

    postGameLabsAction for more information.

  • Fetches all currently available GameLabs actions. This list will be empty if the GameLabs mod is not installed on the server.

    Parameters

    • OptionalserverApiId: string

      The server API ID to fetch GameLabs actions for.

    Returns Promise<{
        actionCode: string;
        actionContext: string;
        actionContextFilter: string[];
        actionName: string;
        parameters: undefined | {};
        referenceKey: string;
    }[]>

    The GameLabs actions.

    Thrown if the server is not found.

    Thrown if the server API ID is not provided.

  • Fetches all dynamic entity events from the GameLabs mod. This list will be empty if the GameLabs mod is not installed on the server.

    Parameters

    • OptionalserverApiId: string

      The server API ID to fetch GameLabs entity events for.

    Returns Promise<{
        className: string;
        id: string;
        position: [number, number];
    }[]>

    The GameLabs entity events.

    Thrown if the server is not found.

    Thrown if the server API ID is not provided.

  • Fetches all dynamic entity vehicles from the GameLabs mod. This list will be empty if the GameLabs mod is not installed on the server.

    Parameters

    • OptionalserverApiId: string

      The server API ID to fetch GameLabs entity vehicles for.

    Returns Promise<{
        className: string;
        health: number;
        id: string;
        position: [number, number];
        speed: number;
    }[]>

    The GameLabs entity vehicles.

    Thrown if the server is not found.

    Thrown if the server API ID is not provided.

  • Fetch game-server details from the CFTools Data API. This references game-server entities, and is NOT the scope which allows you to retrieve information about CFCloud instances.

    Parameters

    Returns Promise<Omit<{
        attributes: {
            description: string;
            dlc: boolean;
            dlcs: {
                livonia: boolean;
                sakhal: boolean;
            };
            experimental: boolean;
            hive: string;
            modded: boolean;
            official: boolean;
            shard: string;
            whitelist: boolean;
        };
        environment: {
            perspectives: {
                1Rd: boolean;
                3Rd: boolean;
            };
            time: string;
            timeAcceleration: {
                general: number;
                night: number;
            };
        };
        game: DayZ;
        geolocation: {
            available: boolean;
            city: {
                name: string;
                region: string;
            };
            continent: string;
            country: {
                code: string;
                name: string;
            };
            timezone: string;
        };
        host: {
            address: string;
            gamePort: number;
            os: string;
            queryPort: number;
        };
        map: string;
        mods: {
            fileId: string;
            name: string;
        }[];
        name: string;
        object: {
            createdAt: string;
            error: GameServerQueryError;
            updatedAt: string;
        };
        offline: boolean;
        online: boolean;
        publisher: {
            monetization: boolean;
        };
        rank: number;
        rating: string;
        security: {
            battleye: boolean;
            password: boolean;
            vac: boolean;
        };
        signatures: string[];
        status: {
            bots: boolean;
            players: number;
            queue: {
                active: boolean;
                size: number;
            };
            slots: number;
        };
        version: string;
    }, "object"> & {
        object: Omit<{
            createdAt: string;
            error: GameServerQueryError;
            updatedAt: string;
        }, "createdAt" | "updatedAt"> & {
            createdAt: Date;
            updatedAt: Date;
        };
    }>

    The game-server details.

    for more information.

  • Fetches the player statistics for a specific game-server.

    Parameters

    Returns Promise<{
        identities: {
            battleye: {
                guid: string;
            };
            bohemiainteractive: {
                uid: string;
            };
            steam: {
                steam64: string;
            };
        };
        values: {
            clearedAt: Date;
            createdAt: Date;
            game: {
                dayz: undefined | {
                    deaths: number;
                    distanceTraveled: number;
                    environmentDeaths: number;
                    hits: number;
                    kdratio: number;
                    kills: {
                        animals: number;
                        infected: number;
                        players: number;
                    };
                    longestKill: number;
                    longestShot: number;
                    shots: {
                        fired: number;
                        hit: number;
                        hitAnimals: number;
                        hitInfected: number;
                        hitPlayers: number;
                        hitVehicles: number;
                    };
                    suicides: number;
                    weapons: {};
                    zones: {
                        : number;
                        brain: number;
                        head: number;
                        leftarm: number;
                        leftfoot: number;
                        lefthand: number;
                        leftleg: number;
                        rightarm: number;
                        rightfoot: number;
                        righthand: number;
                        rightleg: number;
                        torso: number;
                    };
                };
            };
            omega: {
                nameHistory: string[];
                playtime: number;
                sessions: number;
            };
            updatedAt: Date;
        };
    }>

    The player statistics for the game-server.

    Thrown if the server identifier is invalid.

    for more information.

  • Queries the priority queue list/bucket for a specific player.

    The playerId parameter can be a CFTools ID or a dynamic player ID. If the playerId parameter is a dynamic player ID, it will be resolved to a CFTools ID before being used in the request.

    The comment parameter is an optional comment to filter the priority queue list with.

    Parameters

    Returns Promise<{
        createdAt: Date;
        creator: {
            cftoolsId: string;
        };
        links: {
            href: string;
            method: string;
            relationship: string;
        };
        meta: {
            comment: string;
            expiration: null | Date;
            fromApi: boolean;
        };
        updatedAt: Date;
        user: {
            cftoolsId: string;
        };
        uuid: string;
    }[]>

    The priority queue list/bucket for the player.

    Thrown if the player is not found in the priority queue bucket/list.

    • postPriorityQueue for more information on posting to the priority queue.
    • deletePriorityQueue for more information on deleting from the priority queue.
    • for more information on the CFTools API endpoint.
  • Fetches a session by a player ID. This can be a CFTools ID or a dynamic player ID. If the player ID is a dynamic player ID, it will be resolved to a CFTools ID before being used in the request.

    Parameters

    Returns Promise<null | ClientPlayerSession>

    The player session.

    Thrown if the player session is not found.

    Thrown if the server API ID is not provided.

    for more information.

  • Queries the whitelist for a specific player.

    The playerId parameter can be a CFTools ID or a dynamic player ID. If the playerId parameter is a dynamic player ID, it will be resolved to a CFTools ID before being used in the request.

    The comment parameter is an optional comment to filter the whitelist with.

    Parameters

    Returns Promise<{
        createdAt: Date;
        creator: {
            cftoolsId: string;
        };
        links: {
            href: string;
            method: string;
            relationship: string;
        }[];
        meta: {
            comment: string;
            expiration: null | Date;
            fromApi: boolean;
        };
        updatedAt: Date;
        user: {
            cftoolsId: string;
        };
        uuid: string;
    }[]>

    The whitelist for the player.

    Thrown if the server identifier is invalid.

    • postWhitelist for more information on posting to the whitelist.
    • deleteWhitelist for more information on deleting from the whitelist.
    • for more information.
  • Heal a player to full health.

    The target parameter can be a CFTools ID, a dynamic player ID, or a session id. If the target parameter is a dynamic player ID, it will be resolved to a session id before being used in the request.

    The mod GameLabs is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the player being healed is not online.

    postGameLabsAction for more information.

  • Kicks a player that is currently connected to the server. The id parameter can be a CFTools ID, a dynamic player ID, or a session id. If the id parameter is a dynamic player ID, it will be resolved to a CFTools ID before being used in the request.

    Parameters

    • options: KickOptions

      The options to kick a player with.

    Returns Promise<void>

    Thrown if the player being kicked is not found.

    Thrown if the kick reason exceeds 128 characters.

    for more information.

  • Kill a player that is currently connected to the server.

    The target parameter can be a CFTools ID, a dynamic player ID, or a session id. If the target parameter is a dynamic player ID, it will be resolved to a session id before being used in the request.

    The mod GameLabs is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the player being killed is not online.

    postGameLabsAction for more information.

  • Kills the engine of a vehicle that is currently spawned on the server.

    The identifier parameter is the entity ID of the vehicle to kill the engine of.

    The mod GameLabs is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the vehicle is not found.

    postGameLabsAction for more information.

  • This action will mute a player that is currently connected to the server.

    The target parameter can be a CFTools ID, a dynamic player ID, or a session id. If the target parameter is a dynamic player ID, it will be resolved to a session id before being used in the request.

    The durationInMinutes parameter is the amount of time in minutes to mute the player for.

    The mod GameLabs is required to be installed on the server for this action to work.

    The mod Advanced Groups is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the player who is being muted is not online.

  • This action will unmute a player that is currently connected to the server.

    The target parameter can be a CFTools ID, a dynamic player ID, or a session id. If the target parameter is a dynamic player ID, it will be resolved to a session id before being used in the request.

    The mod GameLabs is required to be installed on the server for this action to work.

    The mod Advanced Groups is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the player who is being unmuted is not online.

  • Fetches the leaderboard for a specific game-server.

    Parameters

    Returns Promise<{
        cftoolsId: string;
        deaths: number;
        environmentDeaths: number;
        hits: number;
        kdratio: number;
        kills: number;
        latestName: string;
        longestKill: number;
        longestShot: number;
        playtime: number;
        rank: number;
        suicides: number;
    }[]>

    The leaderboard for the game-server.

    Thrown if the server identifier is invalid.

    Thrown if the leaderboard type is invalid.

    Thrown if the leaderboard limit is invalid.

    Thrown if the leaderboard limit is too low.

    Thrown if the leaderboard limit is too high.

    for more information.

  • Fetches bans from a banlist. The filter parameter can be a comment, CFTools ID or an IPv4 address. If the filter parameter is a string, it will be ignored in the request. If the filter parameter is an AnyPlayerId, it will be resolved to a CFTools ID before being used in the request.

    Parameters

    Returns Promise<(Omit<{
        createdAt: string;
        expiresAt: null | string;
        id: string;
        identifier: string;
        links: {
            href: string;
            method: "DELETE";
            relationship: "delete";
        }[];
        reason: string;
        status: BanStatus;
        updatedAt: string;
    }, "createdAt" | "updatedAt" | "expiresAt"> & {
        createdAt: Date;
        expiresAt: null | Date;
        updatedAt: Date;
    })[]>

    The list of bans.

    for more information.

  • Resolves a string or AnyPlayerId to a CFTools ID.

    Parameters

    Returns Promise<{
        cftoolsId: string;
        notice?: string;
    }>

    The resolved CFTools ID.

    for more information.

  • Privately messages a player that is currently connected to the server. The id parameter can be a CFTools ID, a dynamic player ID, or a session id. If the id parameter is a dynamic player ID, it will be resolved to a CFTools ID before being used in the request.

    Parameters

    Returns Promise<void>

    Thrown if the player being messaged is not found.

    Thrown if the private message content exceeds 256 characters.

    for more information.

  • Broadcast a message to all players currently connected to the server.

    Parameters

    Returns Promise<void>

    Thrown if the server message content exceeds 256 characters.

    for more information.

  • Fetches the player list from the CFTools Data API. This list consists of all players currently connected to the server.

    Parameters

    • OptionalserverApiId: string

      The server API ID to fetch the player list for.

    Returns Promise<ClientPlayerSession[]>

    The player list.

    Thrown if the server is not found.

    Thrown if the server API ID is not provided.

    for more information.

  • Perform a specified GameLabs action. The GameLabs mod is required to be installed on the server for these actions to work. This counts for any GameLabs action, including teleporting players, spawning items, and more.

    Parameters

    Returns Promise<void>

    Thrown if the player on which the action is performed is not online.

    for more information.

  • Posts a player to the priority queue list/bucket.

    The playerId parameter can be a CFTools ID or a dynamic player ID. If the playerId parameter is a dynamic player ID, it will be resolved to a CFTools ID before being used in the request.

    • The expiresAt parameter is an optional date to expire the player from the priority queue, if not provided the player will be in the priority queue indefinitely/permanent.
    • The comment parameter is a required comment to add to the priority queue entry.

    Parameters

    Returns Promise<void>

    Thrown if the player is already in the priority queue.

    • getPriorityQueue for more information on getting the priority queue.
    • deletePriorityQueue for more information on deleting from the priority queue.
    • for more information on the CFTools API endpoint.
  • Posts a player to the whitelist.

    The playerId parameter can be a CFTools ID or a dynamic player ID. If the playerId parameter is a dynamic player ID, it will be resolved to a CFTools ID before being used in the request.

    • The expiresAt parameter is an optional date to expire the player from the whitelist, if not provided the player will be in the whitelist indefinitely/permanent.
    • The comment parameter is a required comment to add to the whitelist entry.

    Parameters

    Returns Promise<void>

    Thrown if the player is already in the whitelist.

    • getWhitelist for more information on getting the whitelist.
    • deleteWhitelist for more information on deleting from the whitelist.
    • for more information.
  • Refuel a vehicle that is currently spawned on the server.

    The identifier parameter is the entity ID of the vehicle to refuel.

    The mod GameLabs is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the vehicle is not found.

    postGameLabsAction for more information.

  • Repair a vehicle that is currently spawned on the server.

    The identifier parameter is the entity ID of the vehicle to repair.

    The mod GameLabs is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the vehicle is not found.

    postGameLabsAction for more information.

  • Resets the player statistics for a specific game-server.

    Parameters

    Returns Promise<void>

    Thrown if the server identifier is invalid.

    Thrown if the player is not found.

    for more information.

  • Resolves the dynamic player ID to a CFTools ID. This id can be a string, or AnyPlayerId.

    Parameters

    • options: {
          playerId: string | AnyPlayerId;
      }

      The options to resolve the dynamic player ID from.

    Returns Promise<string>

    The resolved CFTools ID.

  • Resolves target input to a steam64, used in GameLabs actions (referenceKey). target can be multiple different things, please see GameLabsActionTarget.

    Parameters

    Returns Promise<null | string>

    The resolved player reference key.

  • Resolves the server ID from the provided options.

    Parameters

    Returns string

    The resolved server ID.

  • Fetches server information from the CFTools Data API. This includes information about the server such as the name, description, and more.

    Parameters

    • OptionalserverApiId: string

      The server API ID to fetch information for.

    Returns Promise<{
        connection: Omit<{
            peerVersion: string;
            prefilledCommands: boolean;
            protcolUsed: string;
            restricted: boolean;
        }, "protcolUsed"> & {
            protocolUsed: string;
        };
        gameserver: Omit<{
            game: DayZ;
            gameIntegration: {
                capabilities: string[];
                pollProtocol: string;
                status: boolean;
                updatedAt: null | string;
                version: null | string;
            };
            gameserverId: string;
            link: string;
            runtime: {
                gametime: undefined | string;
                restartSchedule: undefined | {
                    next: undefined | {
                        local: (...) | (...);
                        utc: (...) | (...);
                    };
                };
                uptime: undefined | number;
            };
        }, "gameIntegration"> & {
            gameIntegration: Omit<{
                capabilities: string[];
                pollProtocol: string;
                status: boolean;
                updatedAt: null | string;
                version: null | string;
            }, "updatedAt"> & {
                updatedAt: null | Date;
            };
        };
        links: {
            href: string;
            method: string;
            relationship: string;
        }[];
        object: Omit<{
            createdAt: string;
            nickname: string;
            resourceOwner: string;
            updatedAt: string;
        }, "createdAt" | "updatedAt"> & {
            createdAt: Date;
            updatedAt: Date;
        };
        worker: {
            clientId: string;
            state: "WorkerState.CONNECTED" | "WorkerState.DISCONNECTED";
        };
    }>

    The server information.

    Thrown if the server is not found.

    Thrown if the server API ID is not provided.

    for more information.

  • Fetches server statistics from the CFTools Data API. This includes statistics about the server such as the player count, uptime, and more.

    Parameters

    • OptionalserverApiId: string

      The server API ID to fetch statistics for.

    Returns Promise<{
        aggregated: {
            playerIndividual: {
                daily: number[];
                monthly: number[];
                weekly: number[];
            };
            playerInflux: {
                daily: number[];
                monthly: number[];
                weekly: number[];
            };
            playerNewRetention: {
                daily: number[];
                monthly: number[];
                weekly: number[];
            };
            playerRetention: {
                monthly: number[];
                weekly: number[];
            };
            playtime: {
                daily: number[];
                monthly: number[];
                weekly: number[];
            };
            sessions: {
                daily: number[];
                monthly: number[];
                weekly: number[];
            };
            topCountries: string[];
        };
        general: {
            modComplexity: number;
            playtimeTotalSeconds: number;
            sessionsTotal: number;
        };
    }>

    The server statistics.

    Thrown if the server is not found.

    Thrown if the server API ID is not provided.

    for more information.

  • Change the world weather to sunny/clear on the server.

    Parameters

    • OptionalserverApiId: string

      The server API ID to change the world weather on.

    Returns Promise<void>

  • Spawn on item on a set of [x, y, z] coordinates on the ground.

    • The itemClassName parameter is the class name of the item to spawn.
    • The position parameter is an array of three numbers, representing the x, y, and z coordinates respectively.
    • The quantity parameter is the amount of items to spawn.
    • The stacked parameter is a boolean that determines if the items should be stacked.
    • The populateItem parameter is a boolean that determines if the item should be populated.

    The mod GameLabs is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the item spawn position is not an array of three numbers.

    postGameLabsAction for more information.

  • Spawn an item on a player that is currently connected to the server.

    The target parameter can be a CFTools ID, a dynamic player ID, or a session id. If the target parameter is a dynamic player ID, it will be resolved to a session id before being used in the request.

    • The itemClassName parameter is the class name of the item to spawn.
    • The quantity parameter is the amount of items to spawn.
    • The stacked parameter is a boolean that determines if the items should be stacked.
    • The populateItem parameter is a boolean that determines if the item should be populated.

    The mod GameLabs is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the player on which the item is spawned is not online.

    postGameLabsAction for more information.

  • Strip a player of all items that they currently have.

    The target parameter can be a CFTools ID, a dynamic player ID, or a session id. If the target parameter is a dynamic player ID, it will be resolved to a session id before being used in the request.

    The mod GameLabs is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the player being stripped is not online.

    postGameLabsAction for more information.

  • Teleport a player to a specified position.

    The target parameter can be a CFTools ID, a dynamic player ID, or a session id. If the target parameter is a dynamic player ID, it will be resolved to a session id before being used in the request.

    The position parameter is an array of three numbers, representing the x, y, and z coordinates respectively.

    The mod GameLabs is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the player being teleported is not online.

    postGameLabsAction for more information.

  • Unstuck a vehicle that is currently spawned on the server. This action will move the vehicle by a couple of x, and z coordinates to get it unstuck.

    The identifier parameter is the entity ID of the vehicle to unstuck.

    The mod GameLabs is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the vehicle is not found.

    postGameLabsAction for more information.

  • Wipe all AI from the world on the server. This deletes all AI entities from the world, including zombies, animals, and more.

    The mod GameLabs is required to be installed on the server for this action to work.

    Parameters

    • OptionalserverApiId: string

      The server API ID to wipe world AI on.

    Returns Promise<void>

    postGameLabsAction for more information.

  • Wipe all vehicles from the world on the server. This deletes all vehicle entities from the world, including cars, boats, helicopters, and more.

    The mod GameLabs is required to be installed on the server for this action to work.

    Parameters

    • OptionalserverApiId: string

      The server API ID to wipe world vehicles on.

    Returns Promise<void>

    postGameLabsAction for more information.

  • Flip a transport that is currently spawned on the server.

    The identifier parameter is the entity ID of the transport to flip.

    The mod GameLabs is required to be installed on the server for this action to work.

    The mod FlipTransport is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the transport is not found.

  • This action will push a transport that is currently spawned on the server.

    • The identifier parameter is the entity ID of the transport to push.
    • The reverse parameter is a boolean that determines if the transport should be pushed in reverse.

    The mod GameLabs is required to be installed on the server for this action to work.

    The mod PushTransport is required to be installed on the server for this action to work.

    Parameters

    Returns Promise<void>

    Thrown if the transport is not found.