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 |
| Toggle the crosshair panel open or closed. |
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.
Open
exports['qs-crosshair']:Open()If OnBeforeOpen() in client/custom/main.lua returns false, the panel will not open.
Close
exports['qs-crosshair']:Close()Closes the crosshair panel. Safe to call when the panel is already closed (no-op).
IsOpen
if not exports['qs-crosshair']:IsOpen() then
exports['qs-crosshair']:Open()
endReturns true if the panel is currently visible, false otherwise. Use this before opening another full-screen UI to avoid focus conflicts.
OnBeforeOpen() - Block Panel
In client/custom/main.lua:
function OnBeforeOpen()
-- Example: prevent panel during an active cutscene
if IsCutsceneActive() then return false end
return true
end


