Usage
Finding a Garage
Each configured garage places an NPC at
npcCoord
and a blip on the map (if configured).Players see a βGarageβ icon (blip) and can walk up to the NPC to open the garage menu.
Opening the Garage Menu
When close to the NPC, a prompt (e.g., Press E to open the garage) appears.
Pressing E opens a NUI menu showing stored vehicles, including whether theyβre parked or currently out in the world.
Storing a Vehicle
Players must drive the vehicle to the parkCoord near the same garage NPC.
A prompt (Press E to park your car) appears if they own that vehicle.
Retrieving a Vehicle
From the NUI list, selecting a vehicle calls a server check (
stg-garage:getVehicleStatus
).If the vehicle is βin world,β players might need to pay the retrieval fee if not already in the parking.
The script spawns the vehicle at one of the spawnCoords for that garage.
Cooldown / Timer
Once players have paid and triggered retrieval, the script sets a countdown (
retrieveCars[plate]
) preventing immediate repeated calls.The retrieval timer is processed in a server loop (Citizen.CreateThread) decreasing each second.
Favorite Vehicles
If enabled, players can mark a vehicle as βfavorite,β so it appears in a separate tab or gets a special label.
Last updated