Garages V1
Exports and Events
Available Garages V1 exports and events for FiveM ESX integrations and custom scripts.
On this page9 sections
Use these exports and events to integrate the garage system with other scripts.
Check if the player is in a garage zone
exports["sc_garagesv2"]:inGarageZone()-- This export returns a boolean:-- true if the player is currently inside a garage zone,-- false if the player is not inside any garage zone.Get the current zone type
exports["sc_garagesv2"]:getCurrentZoneType()-- This exported function returns the type of the current zone the player is in.-- - Returns a string representing the zone type (e.g., "garage", "boat", "plane", etc.) if the player is inside a defined zone.-- - Returns `nil` if the player is not inside any defined zone.Get the current zone name
exports["sc_garagesv2"]:getCurrentZoneName()-- This exported function returns the type of the current zone the player is in.-- - Returns a string representing the zone type (e.g., "garage", "boat", "plane", etc.) if the player is inside a defined zone.-- - Returns `nil` if the player is not inside any defined zone.Get the player's vehicle data
exports["sc_garagesv2"]:getVehiclesData()-- This exported function returns all vehicles data owned by the player.-- a table or list of vehicles associated with the player's ownership.-- The returned data includes details about each vehicle the player owns.Get showroom vehicles
exports["sc_garagesv2"]:getShowRoomVehicles()-- This exported function returns all vehicles currently in the showroom.-- a list or table of vehicles available in the showroom.-- The data includes details about each showroom vehicle.Open the garage menu
TriggerEvent("venergu:openGarage")-- Triggers the garage menu for the player, allowing them to view and retrieve their stored vehicles.Open the impound menu
TriggerEvent("venergu:openImpound")-- Triggers the impound menu for the player, displaying a list of impounded vehicles available for recovery.Open the boat garage menu
TriggerEvent("venergu:openBoatGarage")-- Opens the boat garage menu, showing the player their stored boats.Open the plane garage menu
TriggerEvent("venergu:openPlaneGarage")-- Opens the plane garage menu, showing the player their stored planes.