Commands & Exports

This section lists all available commands, exports, and events included in the script. You’ll find client-side, server-side, and shared functions designed to help developers integrate, extend, or interact with the system easily within their own scripts or frameworks.


Commands

This section lists all available commands included in the script. Each command is designed to simplify administration, player interaction, or debugging tasks. You’ll find detailed descriptions, usage examples, and permission requirements to help you manage and customize your server efficiently.

Command
Description

/openracingui

You must enable Config.AccessTabletWithKey.

/race_cams

Requires using Config.Debug for this.


Client Exports

This section provides all available client exports for the script. These functions allow you to interact directly with the system from the client side, enabling custom features, UI interactions, and integrations with other resources. Each export includes a short description and usage example for easy implementation.

InRace

The InRace export allows you to check if a player is currently participating in a race. This is useful for managing or restricting specific actions while the player is actively racing.


How to Use

To check whether the player is in a race, use the following code:

local inRace = exports['qs-advancedracing']:InRace()
print("Is the player currently in a race? " .. tostring(inRace))

This will return a boolean value (true or false) indicating whether the player is actively participating in a race. You can then use this information to implement custom logic, such as blocking certain interactions, modifying gameplay mechanics, or displaying race-specific UI elements.