How to Install the SleepyCode Vehicle Shop V1 (FiveM ESX Guide)
Step-by-step installation guide for SleepyCode Vehicle Shop V1 on FiveM ESX servers - dependencies, server.cfg, config.lua options and test drives.
Vehicle Shop V1 by SleepyCode is a fully-featured FiveM vehicle dealership script for ESX servers. It supports NPC interaction via ox_target, a camera-based showroom UI, test drives, per-vehicle pricing, and Discord webhook logging.
Dependencies
Before you start, install and ensure these resources are running:
- ox_lib - github.com/overextended/ox_libgithub.com/overextended/ox_libhttps://github.com/overextended/ox_lib
- ox_target - github.com/overextended/ox_targetgithub.com/overextended/ox_targethttps://github.com/overextended/ox_target
- oxmysql - required for ESX player data
Installation Steps
1. Place the resource
After purchasing from the SleepyCode store and downloading via Keymaster, extract the folder and place it in your resources directory:
resources/
[sleepycode]/
sc_vehicleshop/
fxmanifest.lua
shared/
config.lua
client/
server/
functions.lua2. Add to server.cfg
ensure oxmysql
ensure ox_lib
ensure ox_target
ensure es_extended
ensure sc_vehicleshopOrder matters - sc_vehicleshop must start after its dependencies.
3. Configure config.lua
The main config file lives at shared/config.lua. Key settings:
Dealer NPC and location:
Ped = "mp_m_shopkeep_01"
-- Blip label (shown on the map)
BlipLabel = "Sklep samochodowy" -- "Car Shop" - change to your preference
BlipSprite = 52Test drive settings:
TestDriveDuration = 15 -- seconds before vehicle is removed
TestDrivePlate = "TEST CAR"ox_target interaction distance:
TargetDistance = 2.54. Vehicle categories
The script ships with six built-in categories:
| Category | Label |
|---|---|
| Sedan | Sedan |
| Suv | SUV |
| Offroad | Offroad |
| Super | Super |
| Muscle | Muscle |
| Classic | Classic |
Add your own by extending the categories table in config.lua.
5. Adding vehicles
Each vehicle entry requires: model name, price, image path, category, and performance stats. Example from the default config:
{ model = "sultan", price = 25000, category = "Sedan", label = "Sultan" },
{ model = "adder", price = 91000, category = "Super", label = "Adder" },
{ model = "zentorno", price = 72000, category = "Super", label = "Zentorno" },
{ model = "dominator", price = 44000, category = "Muscle", label = "Dominator" },
{ model = "kamacho", price = 35000, category = "Offroad", label = "Kamacho" },The default catalogue includes 14 vehicles ranging from $2,500 to $91,000.
6. Discord webhook logging
The server/functions.lua file includes a webhook function that logs every purchase with: player name, vehicle model, price, plate, and timestamp. Set your webhook URL there.
7. Restart and test
Run /start sc_vehicleshop in the F8 console or fully restart the server. Navigate to the blip on the map and interact with the NPC via ox_target to open the dealership UI.
Common Issues
NPC doesn't appear - Confirm that ox_target is started before sc_vehicleshop in server.cfg.
Test drive timer doesn't work - Check TestDriveDuration is a number (integer), not a string.
Purchase doesn't deduct money - Make sure ESX is fully loaded before the shop resource starts.
For help, join the SleepyCode Discord at discord.gg/qCDt8u7Efgdiscord.gg/qCDt8u7Efghttps://discord.gg/qCDt8u7Efg.