Skip to content

Commands & permissions

Commands, keys and staff permissions of Cuxial Garages, and what the admin panel can do.

Cuxial Garages adds six commands: two for players and officers, four for staff. Everything else happens at the markers and in the admin panel.

Commands ​

CommandWhoWhat it does
/garageadminStaff with the admin.permission permissionOpens the admin panel.
/impoundJobs listed in data/impound.lua → jobsOpens the impound form for the nearest vehicle, within maxDistance.
/givekey [id]EveryoneHands the key of the nearest vehicle to the player with that server id. Without an id, to the nearest player within 5 metres. You need the key, and the other player must be next to you.
/adminkey [plate]Staff in the ACE groupCreates a key for that plate. Inside a vehicle, it uses the plate of that vehicle.
/carwipe [seconds]Staff in the ACE group, server consoleStarts a vehicle cleanup after a countdown. Without a number it uses countdown from data/carwipe.lua.
/cancelwipeStaff in the ACE group, server consoleCancels the cleanup in progress.

[id], [plate] and [seconds] are optional. The names of /impound, /givekey, /adminkey, /carwipe and /cancelwipe can be changed in their data files. /garageadmin is fixed.

Keys ​

KeyWhat it does
EAt a marker on foot: opens the garage, depot or rental point. Driving: stores the vehicle, returns a job vehicle or returns a rental. Fixed key.
LLocks or unlocks the nearest vehicle you have the key for. Default from keybinds.toggleLocks.
GTurns the engine on or off from the driver seat. Default from keybinds.toggleEngine.
HSearches for keys in a vehicle you have no key for, from the driver seat. Default from keybinds.searchKeys.

L, G and H are defaults. Each player can rebind them in the GTA key settings.

While placing a garage from the admin panel:

KeyWhat it does
EPlaces the access point or the parking spot at your position.
Mouse wheelRotates the parking spot.
EnterFinishes the current phase.
BackspaceUndoes the last spot, or cancels.
XAdds another access point to the same garage.

Items ​

ItemUse
Vehicle keyUsing it from the inventory locks or unlocks its vehicle when it is nearby.
Lockpick, advanced lockpickUsing one next to a locked vehicle starts a skill check. Success unlocks the doors.
Rental contractUsing it opens the receipt of that rental while it is active.

With ox_target running, aiming at a player while standing next to a vehicle you have the key for shows the option to give them that key.

Permissions ​

FeatureRequirement
Admin panel and all its actionsThe permission in admin.permission ('admin' by default), checked through your framework
/adminkeyACE group group.<admin.permission> (group.admin by default), plus the permission above
/carwipe, /cancelwipeACE group in data/carwipe.lua → adminAce (group.admin by default)
/impoundA job listed in data/impound.lua → jobs
Releasing vehicles at a depotA job on the job list of that depot. Depots with no list use data/impound.lua → jobs
Job garageHaving that job. Each fleet vehicle can ask for a minimum grade

To put a staff member in the ACE group:

server.cfg
cfg
add_principal identifier.license:xxxxxxxxxxxxxxxx group.admin

Admin panel ​

/garageadmin opens a panel with six tabs.

TabWhat you do there
GaragesCreate, edit and delete public, house and gang garages: id, name, vehicle categories, transfer price, transfers to players and capacity.
JobsCreate job garages: the job, the fleet (model, minimum grade, livery, extras) and the extras menu.
DepotsCreate impound depots and choose which jobs can release vehicles there.
RentalCreate rental points: class (ground, air, sea or mixed), duration buttons, maximum hours and the catalogue with price per hour, deposit, stock and licence per vehicle.
VehiclesSearch every owned vehicle. Give a new vehicle to a player, move one to another garage, impound it or delete it.
PlayersSearch players and see the vehicles of each one.

Points are placed in game. The panel closes, you walk to the spot and place the access point and the parking spots with a ghost vehicle, and the garage is saved when you finish. A garage can have several access points, each with its own parking spots.

Staff actions are overrides. They remove the vehicle from the world if it was out, and they ignore garage capacity.

© Cuxial