Client
OpenVehicleShop
Opens the vehicle shop interface for a specific shop.
exports["sd_vehicleshop"]:OpenVehicleShop(shop)Parameters:
| Parameter | Type | Description |
|---|---|---|
shop | string | Shop identifier |
Returns: boolean - Success status
GetClosestShop
Gets the closest vehicle shop to the player.
exports["sd_vehicleshop"]:GetClosestShop()Returns: string|nil - Shop identifier or nil if none found
GetAllShops
Gets all available shops.
exports["sd_vehicleshop"]:GetAllShops()Returns: table - Array of shop identifiers
IsInVehicleShop
Checks if the player is currently in a vehicle shop.
exports["sd_vehicleshop"]:IsInVehicleShop()Returns: boolean - true if in shop, false otherwise
GetCurrentShop
Gets the current shop the player is in.
exports["sd_vehicleshop"]:GetCurrentShop()Returns: string|nil - Current shop identifier or nil
Last updated on