Vehicleshop

Installation

1) Import the import.sql file to your database. 2) Go to Categories folder and edit all the vehicles prices and default stock values. 3) Add the resource to your server and setup your Framework in config/_config.lua. 4) Start your server, the script will start to import all the vehicles from categories folder to your database automatically. 5) Go to config/_vehicleshop.lua and edit the shops, by default the vehicle shop comes configured for Gabz PDM, make sure to change coords if you have a different map. Optional: Add your Discord Webhook for logs in server/framework/framework.lua Note: You need the server build 2372 (Tuners DLC or newer) enabled in your server.

Custom Frameworks

  • You are gonna need to download ox_lib and modify all the Framework functions in the resource, don't worry, everything Framework related is open.
  • Go to fxmanifest.lua and replace the code with:
fxmanifest.lua
1
fx_version "cerulean"
2
description "AV Vehicleshop"
3
author "Avilchiis"
4
version '2.0.0'
5
lua54 'yes'
6
games {
7
"gta5"
8
}
9
​
10
ui_page 'web/build/index.html'
11
​
12
shared_scripts {
13
'@ox_lib/init.lua', -- Uncomment this if you aren't using ESX/QBCore
14
"config/*.lua",
15
"categories/*.lua",
16
}
17
​
18
client_scripts {
19
"client/**/*.lua",
20
}
21
​
22
server_scripts {
23
'@oxmysql/lib/MySQL.lua',
24
"server/**/*.lua"
25
}
26
​
27
files {
28
'web/build/index.html',
29
'web/build/**/*',
30
}
31
​
32
escrow_ignore {
33
"config/*.lua",
34
"categories/*.lua",
35
"client/framework/*.lua",
36
"server/framework/*.lua",
37
"server/photobooth/*.lua",
38
}
Last modified 3mo ago