Configuration
Don't touch this lines
Config = {}
Cat = {}
Config = {}
Cat = {}
-- $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\
--$$ __$$\ $$ __$$\ $$$\ $$ |$$ _____|\_$$ _|$$ __$$\ $$ | $$ |$$ __$$\ $$ __$$\\__$$ __|\_$$ _|$$ __$$\ $$$\ $$ |
--$$ / \__|$$ / $$ |$$$$\ $$ |$$ | $$ | $$ / \__|$$ | $$ |$$ | $$ |$$ / $$ | $$ | $$ | $$ / $$ |$$$$\ $$ |
--$$ | $$ | $$ |$$ $$\$$ |$$$$$\ $$ | $$ |$$$$\ $$ | $$ |$$$$$$$ |$$$$$$$$ | $$ | $$ | $$ | $$ |$$ $$\$$ |
--$$ | $$ | $$ |$$ \$$$$ |$$ __| $$ | $$ |\_$$ |$$ | $$ |$$ __$$< $$ __$$ | $$ | $$ | $$ | $$ |$$ \$$$$ |
--$$ | $$\ $$ | $$ |$$ |\$$$ |$$ | $$ | $$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ | $$ | $$ | $$ | $$ |$$ |\$$$ |
--\$$$$$$ | $$$$$$ |$$ | \$$ |$$ | $$$$$$\ \$$$$$$ |\$$$$$$ |$$ | $$ |$$ | $$ | $$ | $$$$$$\ $$$$$$ |$$ | \$$ |
--\______/ \______/ \__| \__|\__| \______| \______/ \______/ \__| \__|\__| \__| \__| \______| \______/ \__| \__|
--Use "esx" or "qb"
Config.Framework = "qb"
--If you are using one of the most recent versions of ESX, set the script name. Default = "es_extended"
Config.ESXExport = ""
--Default ESX: "esx:getSharedObject" | Default QB: "qb-core"
Config.Core = "qb-core"
--Select oxmysql, mysql-async or ghmattisql
Config.Mysql = "oxmysql"
--Modify if you have problems with the status bars of the vehicles (brakes, maximum speed, etc...)
Config.maxspeedBarMultiplier = 3
--The first car that will be displayed when the menu is opened
Config.defaultcar = 'brioso'
--Add if you want to receive logs by discord when users buy vehicles
Config.DiscordWebhookLink = ""
--activate if a driver's license is required to purchase
Config.licenserequired = false
--Change only in case you want to add several stores
Config.prefix = "bit-dealership"
--Enable to show errors in the log to detect faults
Config.debug = false
--Change the source of the alert to enter the menu. Set to 0 if your language is Chinese
Config.alertTextFont = 4
--Text to be displayed in the alert
Config.enterText = "Press ~r~E~s~ to access the dealership"
--
Config.delaySpawn = 5000
--$$\ $$\ $$$$$$$$\ $$\ $$\ $$$$$$\
--$$ | $$ |$$ _____|\$$\ $$ |$$ __$$\
--$$ |$$ / $$ | \$$\ $$ / $$ / \__|
--$$$$$ / $$$$$\ \$$$$ / \$$$$$$\
--$$ $$< $$ __| \$$ / \____$$\
--$$ |\$$\ $$ | $$ | $$\ $$ |
--$$ | \$$\ $$$$$$$$\ $$ | \$$$$$$ |
--\__| \__|\________| \__| \______/
Config.useKeys = false
function addKeys(vehicle)
--Insert here your trigger. EX:
--TriggerServerEvent("keyscar:server:addKey", GetVehicleNumberPlateText(vehicle), false)
end
-- $$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$\ $$\ $$\ $$\ $$\
--$$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\ $$ | $\ $$ |$$$\ $$ |
--$$ / \__|$$ / $$ |$$ | $$ | $$ / \__|$$ | $$ |$$ / $$ |$$ |$$$\ $$ |$$$$\ $$ |
--$$ | $$$$$$$$ |$$$$$$$ | \$$$$$$\ $$$$$$$ |$$$$$$$$ |$$ $$ $$\$$ |$$ $$\$$ |
--$$ | $$ __$$ |$$ __$$< \____$$\ $$ ____/ $$ __$$ |$$$$ _$$$$ |$$ \$$$$ |
--$$ | $$\ $$ | $$ |$$ | $$ | $$\ $$ |$$ | $$ | $$ |$$$ / \$$$ |$$ |\$$$ |
--\$$$$$$ |$$ | $$ |$$ | $$ | \$$$$$$ |$$ | $$ | $$ |$$ / \$$ |$$ | \$$ |
--\______/ \__| \__|\__| \__| \______/ \__| \__| \__|\__/ \__|\__| \__|
--BUY CAR SPAWN COORDS
Buycar = {
x = -57.11,
y = -1071.59,
z = 26.88,
heading = 69.66
}
function spawnShopVehicle(vehmodel)
if Config.Framework == "esx" then
ESX.Game.SpawnLocalVehicle(vehmodel, vector3(SpawnCarShop.x, SpawnCarShop.y, SpawnCarShop.z), SpawnCarShop.heading)
elseif Config.Framework == "qb" then
local coord = {x = SpawnCarShop.x,y = SpawnCarShop.y,z = SpawnCarShop.z, h = SpawnCarShop.heading}
QBCore.Functions.SpawnVehicle(vehmodel, function(vehicle) end, coord, false)
end
end
-- $$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$$\ $$$$$$$$\ $$\ $$\ $$$$$$\ $$\ $$\ $$$$$$$$\
--$$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\ $$ _____|$$$\ $$$ |$$ __$$\ $$ | $$ |$$ _____|
--$$ / \__|$$ / $$ |$$ | $$ | $$ | $$ |$$ | $$$$\ $$$$ |$$ / $$ |$$ | $$ |$$ |
--$$ | $$$$$$$$ |$$$$$$$ | $$$$$$$ |$$$$$\ $$\$$\$$ $$ |$$ | $$ |\$$\ $$ |$$$$$\
--$$ | $$ __$$ |$$ __$$< $$ __$$< $$ __| $$ \$$$ $$ |$$ | $$ | \$$\$$ / $$ __|
--$$ | $$\ $$ | $$ |$$ | $$ | $$ | $$ |$$ | $$ |\$ /$$ |$$ | $$ | \$$$ / $$ |
--\$$$$$$ |$$ | $$ |$$ | $$ | $$ | $$ |$$$$$$$$\ $$ | \_/ $$ | $$$$$$ | \$ / $$$$$$$$\
--\______/ \__| \__|\__| \__| \__| \__|\________|\__| \__| \______/ \_/ \________|
function delcar()
local vehicle = nil
while vehicle ~= 0 do
local vehicle = GetClosestVehicle(GetEntityCoords(PlayerPedId()), 50.0, 0, 70)
DeleteEntity(vehicle)
if vehicle == 0 then
vehicle = nil
break
end
end
end
--$$$$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$$\ $$$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$$\
--\__$$ __|$$ _____|$$ __$$\\__$$ __| $$ __$$\ $$ __$$\ \_$$ _|$$ | $$ |$$ _____|
--$$ | $$ | $$ / \__| $$ | $$ | $$ |$$ | $$ | $$ | $$ | $$ |$$ |
--$$ | $$$$$\ \$$$$$$\ $$ | $$ | $$ |$$$$$$$ | $$ | \$$\ $$ |$$$$$\
--$$ | $$ __| \____$$\ $$ | $$ | $$ |$$ __$$< $$ | \$$\$$ / $$ __|
--$$ | $$ | $$\ $$ | $$ | $$ | $$ |$$ | $$ | $$ | \$$$ / $$ |
--$$ | $$$$$$$$\ \$$$$$$ | $$ | $$$$$$$ |$$ | $$ |$$$$$$\ \$ / $$$$$$$$\
--\__| \________| \______/ \__| \_______/ \__| \__|\______| \_/ \________|
Testdrive = {
-- Time allowed to test the vehicle (default: 3 minutes // 180 seconds )
time = 180,
--Coords
x = -57.11,
y = -1071.59,
z = 26.88,
heading = 69.66
}
--$$$$$$$$\ $$\ $$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$$\ $$$$$$\
--$$ _____|$$ | $$ |\_$$ _|\__$$ __| $$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\
--$$ | \$$\ $$ | $$ | $$ | $$ / \__|$$ / $$ |$$ / $$ |$$ | $$ |$$ | $$ |$$ / \__|
--$$$$$\ \$$$$ / $$ | $$ | $$ | $$ | $$ |$$ | $$ |$$$$$$$ |$$ | $$ |\$$$$$$\
--$$ __| $$ $$< $$ | $$ | $$ | $$ | $$ |$$ | $$ |$$ __$$< $$ | $$ | \____$$\
--$$ | $$ /\$$\ $$ | $$ | $$ | $$\ $$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ |$$\ $$ |
--$$$$$$$$\ $$ / $$ |$$$$$$\ $$ | \$$$$$$ | $$$$$$ | $$$$$$ |$$ | $$ |$$$$$$$ |\$$$$$$ |
--\________|\__| \__|\______| \__| \______/ \______/ \______/ \__| \__|\_______/ \______/
ExitCoords = {
x = -35.62,
y = -1105.53,
z = 26.42,
}
-- $$$$$$\ $$$$$$$\ $$$$$$\ $$\ $$\ $$\ $$\ $$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$\ $$\ $$\ $$$$$$\ $$$$$$$\
--$$ __$$\ $$ __$$\ $$ __$$\ $$ | $\ $$ |$$$\ $$ | $$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\ $$ | $$ |$$ __$$\ $$ __$$\
--$$ / \__|$$ | $$ |$$ / $$ |$$ |$$$\ $$ |$$$$\ $$ | $$ / \__|$$ / $$ |$$ | $$ | $$ / \__|$$ | $$ |$$ / $$ |$$ | $$ |
--\$$$$$$\ $$$$$$$ |$$$$$$$$ |$$ $$ $$\$$ |$$ $$\$$ | $$ | $$$$$$$$ |$$$$$$$ | \$$$$$$\ $$$$$$$$ |$$ | $$ |$$$$$$$ |
--\____$$\ $$ ____/ $$ __$$ |$$$$ _$$$$ |$$ \$$$$ | $$ | $$ __$$ |$$ __$$< \____$$\ $$ __$$ |$$ | $$ |$$ ____/
--$$\ $$ |$$ | $$ | $$ |$$$ / \$$$ |$$ |\$$$ | $$ | $$\ $$ | $$ |$$ | $$ | $$\ $$ |$$ | $$ |$$ | $$ |$$ |
--\$$$$$$ |$$ | $$ | $$ |$$ / \$$ |$$ | \$$ | \$$$$$$ |$$ | $$ |$$ | $$ | \$$$$$$ |$$ | $$ | $$$$$$ |$$ |
--\______/ \__| \__| \__|\__/ \__|\__| \__| \______/ \__| \__|\__| \__| \______/ \__| \__| \______/ \__|
SpawnCarShop = {
x = 231.77,
y = -994.55,
z = -99.42,
heading = 61.95
}
-- $$$$$$\ $$\ $$\ $$$$$$\ $$$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$\ $$\ $$\ $$\ $$\ $$$$$$\ $$\ $$\ $$$$$$\ $$$$$$$\
--$$ __$$\ $$ | $$ |$$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\ $$ | $\ $$ |$$$\ $$ | $$ __$$\ $$ | $$ |$$ __$$\ $$ __$$\
--$$ / \__|$$ | $$ |$$ / $$ |$$ | $$ | $$ / \__|$$ | $$ |$$ / $$ |$$ |$$$\ $$ |$$$$\ $$ | $$ / \__|$$ | $$ |$$ / $$ |$$ | $$ |
--$$ | $$$$$$$$ |$$$$$$$$ |$$$$$$$ | \$$$$$$\ $$$$$$$ |$$$$$$$$ |$$ $$ $$\$$ |$$ $$\$$ | \$$$$$$\ $$$$$$$$ |$$ | $$ |$$$$$$$ |
--$$ | $$ __$$ |$$ __$$ |$$ __$$< \____$$\ $$ ____/ $$ __$$ |$$$$ _$$$$ |$$ \$$$$ | \____$$\ $$ __$$ |$$ | $$ |$$ ____/
--$$ | $$\ $$ | $$ |$$ | $$ |$$ | $$ | $$\ $$ |$$ | $$ | $$ |$$$ / \$$$ |$$ |\$$$ | $$\ $$ |$$ | $$ |$$ | $$ |$$ |
--\$$$$$$ |$$ | $$ |$$ | $$ |$$ | $$ | \$$$$$$ |$$ | $$ | $$ |$$ / \$$ |$$ | \$$ | \$$$$$$ |$$ | $$ | $$$$$$ |$$ |
--\______/ \__| \__|\__| \__|\__| \__| \______/ \__| \__| \__|\__/ \__|\__| \__| \______/ \__| \__| \______/ \__|
CharCarShop = {
x = 223.16,
y = -1004.42,
z = -99.0,
heading = 100.0
}
-- $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$$\ $$$$$$\
--$$ __$$\ $$ __$$\ $$$\ $$$ | $$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\
--$$ / \__|$$ / $$ |$$$$\ $$$$ | $$ / \__|$$ / $$ |$$ / $$ |$$ | $$ |$$ | $$ |$$ / \__|
--$$ | $$$$$$$$ |$$\$$\$$ $$ | $$ | $$ | $$ |$$ | $$ |$$$$$$$ |$$ | $$ |\$$$$$$\
--$$ | $$ __$$ |$$ \$$$ $$ | $$ | $$ | $$ |$$ | $$ |$$ __$$< $$ | $$ | \____$$\
--$$ | $$\ $$ | $$ |$$ |\$ /$$ | $$ | $$\ $$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ |$$\ $$ |
--\$$$$$$ |$$ | $$ |$$ | \_/ $$ | \$$$$$$ | $$$$$$ | $$$$$$ |$$ | $$ |$$$$$$$ |\$$$$$$ |
--\______/ \__| \__|\__| \__| \______/ \______/ \______/ \__| \__|\_______/ \______/
CamCoords = {
x = 227.94,
y = -995.61,
z = -98.5,
rotx = 360.00,
roty = 0.00,
rotz = 0.00,
fov = 60.00,
}
-- $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$$\
--$$ __$$\ $$ __$$\ $$$\ $$$ | $$ __$$\ $$ __$$\ \_$$ _|$$$\ $$ |\__$$ __|
--$$ / \__|$$ / $$ |$$$$\ $$$$ | $$ | $$ |$$ / $$ | $$ | $$$$\ $$ | $$ |
--$$ | $$$$$$$$ |$$\$$\$$ $$ | $$$$$$$ |$$ | $$ | $$ | $$ $$\$$ | $$ |
--$$ | $$ __$$ |$$ \$$$ $$ | $$ ____/ $$ | $$ | $$ | $$ \$$$$ | $$ |
--$$ | $$\ $$ | $$ |$$ |\$ /$$ | $$ | $$ | $$ | $$ | $$ |\$$$ | $$ |
--\$$$$$$ |$$ | $$ |$$ | \_/ $$ | $$ | $$$$$$ |$$$$$$\ $$ | \$$ | $$ |
-- \______/ \__| \__|\__| \__| \__| \______/ \______|\__| \__| \__|
CamPoint = {
x = 231.82,
y = -994.01,
z = -99.0
}
-- $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\
--$$ __$$\ $$ __$$\ $$$\ $$$ | $$ __$$\ $$ __$$\\__$$ __|$$ __$$\\__$$ __|\_$$ _|$$ __$$\ $$$\ $$ |
--$$ / \__|$$ / $$ |$$$$\ $$$$ | $$ | $$ |$$ / $$ | $$ | $$ / $$ | $$ | $$ | $$ / $$ |$$$$\ $$ |
--$$ | $$$$$$$$ |$$\$$\$$ $$ | $$$$$$$ |$$ | $$ | $$ | $$$$$$$$ | $$ | $$ | $$ | $$ |$$ $$\$$ |
--$$ | $$ __$$ |$$ \$$$ $$ | $$ __$$< $$ | $$ | $$ | $$ __$$ | $$ | $$ | $$ | $$ |$$ \$$$$ |
--$$ | $$\ $$ | $$ |$$ |\$ /$$ | $$ | $$ |$$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ |$$ |\$$$ |
--\$$$$$$ |$$ | $$ |$$ | \_/ $$ | $$ | $$ | $$$$$$ | $$ | $$ | $$ | $$ | $$$$$$\ $$$$$$ |$$ | \$$ |
--\______/ \__| \__|\__| \__| \__| \__| \______/ \__| \__| \__| \__| \______| \______/ \__| \__|
CamRot = {
x = -15.0,
y = 0.0,
z = 252.063
}
--$$\ $$\ $$$$$$\ $$$$$$$\ $$\ $$\ $$$$$$$$\ $$$$$$$\ $$\ $$$$$$$\ $$\ $$$$$$\ $$$$$$$\
--$$$\ $$$ |$$ __$$\ $$ __$$\ $$ | $$ |$$ _____|$$ __$$\ $$ | $$ __$$\ $$ | \_$$ _|$$ __$$\
--$$$$\ $$$$ |$$ / $$ |$$ | $$ |$$ |$$ / $$ | $$ | $$ | $$ / $$ | $$ |$$ | $$ | $$ | $$ |
--$$\$$\$$ $$ |$$$$$$$$ |$$$$$$$ |$$$$$ / $$$$$\ $$$$$$$ | $$ / $$$$$$$\ |$$ | $$ | $$$$$$$ |
--$$ \$$$ $$ |$$ __$$ |$$ __$$< $$ $$< $$ __| $$ __$$< $$ / $$ __$$\ $$ | $$ | $$ ____/
--$$ |\$ /$$ |$$ | $$ |$$ | $$ |$$ |\$$\ $$ | $$ | $$ | $$ / $$ | $$ |$$ | $$ | $$ |
--$$ | \_/ $$ |$$ | $$ |$$ | $$ |$$ | \$$\ $$$$$$$$\ $$ | $$ | $$ / $$$$$$$ |$$$$$$$$\ $$$$$$\ $$ |
--\__| \__|\__| \__|\__| \__|\__| \__|\________|\__| \__| \__/ \_______/ \________|\______|\__|
Blip = {
title = "Dealership",
x = -33.83,
y = -1101.87,
z = 26.42,
color = 49,
sprite = 225,
scale = 0.9
}
Marker = {
x = -33.83,
y = -1101.87,
z = 26.42,
mtype = 23,
--RGB COLOR:
r = 245,
g = 14,
b = 70
}
--$$\ $$\ $$$$$$$$\ $$\ $$\ $$$$$$\ $$$$$$\ $$\ $$$$$$$$\ $$$$$$\
--$$ | $$ |$$ _____|$$ | $$ |\_$$ _|$$ __$$\ $$ | $$ _____|$$ __$$\
--$$ | $$ |$$ | $$ | $$ | $$ | $$ / \__|$$ | $$ | $$ / \__|
--\$$\ $$ |$$$$$\ $$$$$$$$ | $$ | $$ | $$ | $$$$$\ \$$$$$$\
--\$$\$$ / $$ __| $$ __$$ | $$ | $$ | $$ | $$ __| \____$$\
--\$$$ / $$ | $$ | $$ | $$ | $$ | $$\ $$ | $$ | $$\ $$ |
--\$ / $$$$$$$$\ $$ | $$ |$$$$$$\ \$$$$$$ |$$$$$$$$\ $$$$$$$$\ \$$$$$$ |
-- \_/ \________|\__| \__|\______| \______/ \________|\________| \______/
-- ############################ COMPACTS ###########################
Cat = {
[1] = {
name = "COMPACTS",
image = "./img/cat/compact.png",
vehicles = {
['Peugeot 208'] = {
price = 28400,
model = 'bmws7race',
image = './img/cars/208.png'
},
['Golf GTI'] = {
price = 20400,
model = 'zentorno',
image = './img/cars/golf.png'
},
['Brioso'] = {
price = 1000,
model = 'rebel',
image = './img/cars/brioso.png'
},
['Suzuki Swift'] = {
price = 31100,
model = 't20',
image = './img/cars/swift.png'
}
}
},
-- ############################ COUPES ###########################
[2] = {
name = "COUPES",
image = "./img/cat/coupe.png",
vehicles = {
['Cog Cabrio'] = {
price = 500000,
model = 'cogcabrio',
image = './img/cars/nissangtr.png'
},
['Felon'] = {
price = 500000,
model = 'felon',
image = './img/cars/panamera.png'
},
['Sentinel'] = {
price = 500000,
model = 'sentinel',
image = './img/cars/ferrari612.png'
},
['Oracle'] = {
price = 500000,
model = 'oracle',
image = './img/cars/bmwm2.png'
},
['Windsor'] = {
price = 500000,
model = 'windsor',
image = './img/cars/mustanggt.png'
}
}
},
-- ############################ MOTORCYCLES ###########################
[3] = {
name = "MOTO",
image = "./img/cat/motorcycles.png",
vehicles = {
['Akuma'] = {
price = 500000,
model = 'akuma',
image = './img/cars/nissangtr.png'
},
['Avarus'] = {
price = 500000,
model = 'avarus',
image = './img/cars/panamera.png'
},
['Carbon RS'] = {
price = 500000,
model = 'carbonrs',
image = './img/cars/ferrari612.png'
},
['Faggio'] = {
price = 500000,
model = 'faggio',
image = './img/cars/bmwm2.png'
},
['Hakuchou'] = {
price = 500000,
model = 'hakuchou',
image = './img/cars/mustanggt.png'
}
}
},
-- ############################ MUSCLE ###########################
[4] = {
name = "MUSCLE",
image = "./img/cat/muscle.png",
vehicles = {
['Buccaneer'] = {
price = 500000,
model = 'buccaneer',
image = './img/cars/nissangtr.png'
},
['Chino'] = {
price = 500000,
model = 'chino',
image = './img/cars/panamera.png'
},
['Deviant'] = {
price = 500000,
model = 'deviant',
image = './img/cars/ferrari612.png'
},
['Faction'] = {
price = 500000,
model = 'faction',
image = './img/cars/bmwm2.png'
},
['Gauntlet'] = {
price = 500000,
model = 'gauntlet',
image = './img/cars/mustanggt.png'
}
}
},
-- ############################ OFF ROAD ###########################
[5] = {
name = "OFF ROAD",
image = "./img/cat/offroad.png",
vehicles = {
['Nissan GTR'] = {
price = 500000,
model = 'blista',
image = './img/cars/nissangtr.png'
},
['Porsche'] = {
price = 500000,
model = 't20',
image = './img/cars/panamera.png'
},
['Ferrari 612'] = {
price = 500000,
model = 't20',
image = './img/cars/ferrari612.png'
},
['BMW M2'] = {
price = 500000,
model = 't20',
image = './img/cars/bmwm2.png'
},
['Mustang GT'] = {
price = 500000,
model = 't20',
image = './img/cars/mustanggt.png'
}
}
},
-- ############################ SEDANS ###########################
[6] = {
name = "SEDAN",
image = "./img/cat/sedan.png",
vehicles = {
['Renault Megane'] = {
price = 500000,
model = 't20',
image = './img/cars/megane.png'
},
['Bentley'] = {
price = 500000,
model = 't20',
image = './img/cars/bentley.png'
},
['Ferrari 612'] = {
price = 500000,
model = 't20',
image = './img/cars/ferrari612.png'
},
['BMW M2'] = {
price = 500000,
model = 't20',
image = './img/cars/bmwm2.png'
},
['Mustang GT'] = {
price = 500000,
model = 't20',
image = './img/cars/mustanggt.png'
}
}
},
-- ############################ SPORTS ###########################
[7] = {
name = "SPORTS",
image = "./img/cat/sports.png",
vehicles = {
['Nissan GTR'] = {
price = 400000,
model = 't20',
image = './img/cars/nissangtr.png'
},
['Porsche'] = {
price = 300000,
model = 't20',
image = './img/cars/panamera.png'
},
['Ferrari 612'] = {
price = 500000,
model = 't20',
image = './img/cars/ferrari612.png'
},
['BMW M2'] = {
price = 500000,
model = 't20',
image = './img/cars/bmwm2.png'
},
['Mustang GT'] = {
price = 500000,
model = 't20',
image = './img/cars/mustanggt.png'
}
}
},
-- ############################ CLASSICS ###########################
[8] = {
name = "CLASSIC",
image = "./img/cat/sportsclassic.png",
vehicles = {
['Nissan GTR'] = {
price = 500000,
model = 't20',
image = './img/cars/nissangtr.png'
},
['Porsche'] = {
price = 500000,
model = 't20',
image = './img/cars/panamera.png'
},
['Ferrari 612'] = {
price = 500000,
model = 't20',
image = './img/cars/ferrari612.png'
},
['BMW M2'] = {
price = 500000,
model = 't20',
image = './img/cars/bmwm2.png'
},
['Mustang GT'] = {
price = 500000,
model = 't20',
image = './img/cars/mustanggt.png'
}
}
},
-- ############################ SUPER ###########################
[9] = {
name = "SUPER",
image = "./img/cat/super.png",
vehicles = {
['Ferrari Aperta'] = {
price = 500000,
model = 't20',
image = './img/cars/ferrari.png'
},
['Porsche'] = {
price = 500000,
model = 't20',
image = './img/cars/panamera.png'
},
['Ferrari 612'] = {
price = 500000,
model = 't20',
image = './img/cars/ferrari612.png'
},
['BMW M2'] = {
price = 500000,
model = 't20',
image = './img/cars/bmwm2.png'
},
['Mustang GT'] = {
price = 500000,
model = 't20',
image = './img/cars/mustanggt.png'
}
}
},
-- ############################ SUVS ###########################
[10] = {
name = "SUVs",
image = "./img/cat/suv.png",
vehicles = {
['Nissan GTR'] = {
price = 500000,
model = 't20',
image = './img/cars/nissangtr.png'
},
['Porsche'] = {
price = 500000,
model = 't20',
image = './img/cars/panamera.png'
},
['Ferrari 612'] = {
price = 500000,
model = 't20',
image = './img/cars/ferrari612.png'
},
['BMW M2'] = {
price = 500000,
model = 't20',
image = './img/cars/bmwm2.png'
},
['Mustang GT'] = {
price = 500000,
model = 't20',
image = './img/cars/mustanggt.png'
}
}
},
-- ############################ VANS ###########################
[11] = {
name = "VANs",
image = "./img/cat/van.png",
vehicles = {
['Nissan GTR'] = {
price = 500000,
model = 'blista',
image = './img/cars/nissangtr.png'
},
['Porsche'] = {
price = 500000,
model = 't20',
image = './img/cars/panamera.png'
},
['Ferrari 612'] = {
price = 500000,
model = 't20',
image = './img/cars/ferrari612.png'
},
['BMW M2'] = {
price = 500000,
model = 't20',
image = './img/cars/bmwm2.png'
},
['Mustang GT'] = {
price = 500000,
model = 't20',
image = './img/cars/mustanggt.png'
}
}
},
}
--Colors for vehicles (RGB) !!! DON'T CHANGE !!!
Colors = {
['gray'] = '133, 134, 148',
['brown'] = '140,82,37',
['olive'] = '143,147,34',
['dark green'] = '21, 92, 45',
['purple'] = '98, 18, 118',
['chrome'] = '88, 112, 161',
['metallic lime'] = '152, 210, 35',
['matte lime green'] = '102, 184, 31',
['util red'] = '156, 16, 22',
['black'] = '13, 17, 22',
['metallic vermillion pink'] = '223, 88, 145',
['metallic saxony blue'] = '48, 76, 126',
['metallic dark silver'] = '69, 75, 79',
['worn dark red'] = '55, 28, 37',
['util green'] = '29, 90, 63',
['metallic racing green'] = '18, 46, 43',
['metallic orange'] = '247, 134, 22',
['metallic surf blue'] = '118, 175, 190',
['hot pink'] = '242, 31, 153',
['metallic lava red'] = '188, 25, 23',
['metallic sunrise orange'] = '212, 74, 23',
['salmon pink'] = '253, 214, 205',
['metallic white'] = '255,255,246',
['worn taxi yellow'] = '241, 204, 64',
}
--$$$$$$$$\ $$\ $$\ $$\ $$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$\
--$$ _____|$$ | $$ |$$$\ $$ |$$ __$$\\__$$ __|\_$$ _|$$ __$$\ $$$\ $$ |$$ __$$\
--$$ | $$ | $$ |$$$$\ $$ |$$ / \__| $$ | $$ | $$ / $$ |$$$$\ $$ |$$ / \__|
--$$$$$\ $$ | $$ |$$ $$\$$ |$$ | $$ | $$ | $$ | $$ |$$ $$\$$ |\$$$$$$\
--$$ __| $$ | $$ |$$ \$$$$ |$$ | $$ | $$ | $$ | $$ |$$ \$$$$ | \____$$\
--$$ | $$ | $$ |$$ |\$$$ |$$ | $$\ $$ | $$ | $$ | $$ |$$ |\$$$ |$$\ $$ |
--$$ | \$$$$$$ |$$ | \$$ |\$$$$$$ | $$ | $$$$$$\ $$$$$$ |$$ | \$$ |\$$$$$$ |
--\__| \______/ \__| \__| \______/ \__| \______| \______/ \__| \__| \______/
function saveVehicle(xPlayer, vehicleName, props)
if Config.Framework == "esx" then
SqlFunc(Config.Mysql,'execute','INSERT INTO owned_vehicles (owner, plate, vehicle, stored) VALUES (@owner, @plate, @vehicle, @stored)',
{
['@owner'] = xPlayer.identifier,
['@plate'] = props.plate,
['@vehicle'] = json.encode(props),
['@stored'] = 0
})
elseif Config.Framework == "qb" then
SqlFunc(Config.Mysql,'execute','INSERT INTO player_vehicles (license, vehicle, model, citizenid, plate, mods, state) VALUES (@license, @vehicle, @model, @citizenid, @plate, @mods, @state)',
{ ['@license'] = xPlayer.PlayerData.license,
['@vehicle'] = vehicleName,
['@model'] = props.model,
['@citizenid'] = xPlayer.PlayerData.citizenid,
['@plate'] = props.plate,
['@mods'] = json.encode(props),
['@state'] = 0
})
end
end
function removeMoney(payType, xPlayer, price)
if Config.Framework == "esx" then
if payType == "card" then
xPlayer.removeAccountMoney('bank', tonumber(price))
else
xPlayer.removeMoney(tonumber(price))
end
elseif Config.Framework == "qb" then
if payType == "card" then
xPlayer.Functions.RemoveMoney('bank', tonumber(price), "Dealership")
else
xPlayer.Functions.RemoveMoney('cash', tonumber(price), "Dealership")
end
end
end
Last updated