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.

ToggleHud

AddNotify

IsInYachtInterior





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.

interface:notification

The interface:notification event allows you to send styled notifications to a specific player client-side. This is especially useful for displaying alerts, messages, or system feedback in a consistent and customizable way across your server.



TriggerClientEvent('interface:notification', source, text, header, duration, icon)



Example

Here’s a working example using a simple test command:

RegisterCommand("quasar_notify", function(source, args, rawCommand) TriggerClientEvent('interface:notification', source, "This is a test notification.", "Quasar Alert", 5000, "fas fa-file") end, false)

Running /quasar_notify in-game will display a sample notification to the player who executes it.