Commands#
Every command name is set in config/main.lua — the setting is shown next to each one — so you can rename them to fit your server. The defaults:
Command | Who | Description |
|---|---|---|
| Owner or key holder, seated in the motorhome | Gives a key to player |

Documentation
Every Quasar Motorhome command — keys, locations, decoration, camping, furniture creator — plus the client exports and events for driving it from your own FiveM scripts.
Every command name is set in config/main.lua — the setting is shown next to each one — so you can rename them to fit your server. The defaults:
Command | Who | Description |
|---|---|---|
| Owner or key holder, seated in the motorhome | Gives a key to player |
/vanLocation
Anyone inside |
Places the stash, wardrobe or phone charger where you stand. |
| Anyone inside | Opens the decoration editor. |
| Key holder, near the motorhome | Places camping objects around it, or deletes them all. |
| Admins | Opens the furniture creator. |
| Anyone | Returns you to routing bucket 0 if you are ever stuck in an empty world. |
| Anyone, debug only | Draws every motorhome's door with its offset, plate and tier. Exists only with |
Admins are ESX
adminandsuperadmin, and on QBCore thegodandadminpermissions or thecommandace. The check isPlayerIsAdmininserver/custom/framework/.
For HUDs, radial menus, garages and anything else that needs to know what a player is doing with a motorhome.
local plate = exports['qs-motorhome']:GetCurrentVanPlate()
if plate then
print(('Inside the motorhome %s'):format(plate))
endReturns the plate of the motorhome the player is inside, or nil when they are not in one. Use it to block a garage, a phone app or an emote while the player is in an interior.
if exports['qs-motorhome']:inDecorate() then
return -- do not open the HUD or a menu over the editor
endReturns true while the decoration editor is open.
local vehicle = exports['qs-motorhome']:getClosestVan()
if vehicle then
local plate = GetVehicleNumberPlateText(vehicle)
endReturns the entity handle of a motorhome within 20 metres that the player holds a key to, or nil. It asks the server about keys, so call it from a thread rather than every frame.
TriggerEvent('qs-motorhome:client:givekeysNearest')Runs /vanGivekey for the closest player within 2 metres — ready for a radial menu or an interaction wheel. The player must be seated in the motorhome.
-- Sent to every client when a break-in sets off the alarm
AddEventHandler('motorhome:client:notifyCops', function(coords) end)
-- Sent to the owner of the motorhome being broken into
AddEventHandler('motorhome:client:notifyOwner', function(plate) end)The default handlers live in client/custom/dispatch/default.lua and client/custom/phone/. Edit them there to route alerts to your own dispatch or phone.
-- config/furniture.lua
Config.DynamicFurnitures = {
['prop_arcade_01'] = {
event = 'myarcade:play',
offset = { x = 0.0, y = -0.6, z = 1.0 },
},
}
-- your resource
RegisterNetEvent('myarcade:play', function(uniq)
-- uniq is the id of the placed object
end)A model listed here shows [E] Interact once placed in a motorhome, and pressing it fires your event with the object's unique id.
Useful when another script needs to read or clear a motorhome's storage directly in your inventory:
Stash | Identifier |
|---|---|
The main stash | The plate, with |
A storage piece of furniture |
|