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 |
| Command used to grant another player access permissions for the van. |
| Defines interaction points inside the van, such as stash, wardrobe, or charger. |
| Command or configuration for customizing the van's appearance or decorations. |
| Command to set up a campsite outside the van, providing additional functionality. |
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.
GetCurrentVanPlate
local vanPlate = exports['qs-motorhome']:GetCurrentVanPlate()
if vanPlate then
print("The current van's plate is: " .. vanPlate)
else
print("No van is currently assigned.")
endThis export returns the CurrentVanPlate as a string (e.g., "ABC123"). Use it to verify ownership, trigger specific actions, or link van-related features in your scripts. If no van is assigned, it will return nil.
inDecorate
local isInDecorateMode = exports['qs-motorhome']:inDecorate()
if isInDecorateMode then
print("The player is currently in decoration mode.")
else
print("The player is not in decoration mode.")
end
The export returns a boolean value (true or false) indicating whether the player is actively in decoration mode. Use this export to implement custom logic, such as preventing movement, disabling certain menus, or modifying gameplay mechanics during decoration mode.
getClosestVan
local closestVan = exports['qs-housing']:getClosestVan()
print("Is the player near a van? " .. tostring(closestVan))This will return a boolean value (true or false) indicating whether the player is currently near a van.
You can then use this information to implement custom logic, such as opening an interaction menu, restricting actions, or triggering events when the player approaches a motorhome.



