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.

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.

CommandDescription
/setmotelownerCommand to set motel owner, editable in config.lua.
/createmotelCommand to create motel, editable in config.lua.
/editmotelCommand to edit motel, editable in config.lua.
/deletemotelCommand to delete motel, editable in config.lua.
/save-motelSave data command, editable in config.lua.
/shareMotelKey [id]Room sharing command, editable in config.lua.
/raidStart police raid, editable in config.lua.





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.

RevokeLicense

HasLicense

GetLicense

GetActiveLicenses

OpenPanel

ClosePanel

GetStarterLicenses

GrantStarterLicenses

AddLicenseToPlayer

local result = exports['qs-licenses']:AddLicenseToPlayer(source, 'driver_license') -- Adds a specific license to the player

This export grants a specific license to a player using the same internal logic as the starter system. If the player does not yet have a photo, the system will trigger the capture process before completing the license creation.