Quasar Store Logo

Commands and 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.

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.

IsPlayerInDM

deathmatch:inDeathmatch

GetData





Server Exports

This section provides all available server exports for the script. These functions allow developers to interact with the system from the server side, manage data, trigger actions, and integrate with other resources. Each export includes a clear description and a practical example to simplify its implementation.

IsPlayerInDM

The IsPlayerInDM export allows you to check if a specific player (identified by their source) is currently participating in a Deathmatch. This is useful for managing gameplay logic or triggering specific events for players in active matches.



To check if a player is in a Deathmatch, use the following code:

if exports['qs-deathmatch']:IsPlayerInDM(source) then print('Player: ' .. source .. ' is in a Deathmatch match') end

This allows for custom logic to be applied based on the player's status, such as restricting access to certain features or logging their participation.