INSTALLATION
1. DOWNLOAD
The first step is to download the product we have just purchased. To do this we will go to our KEYMASTER account and search for "Buty-VehicleShop".
2. DEPENDENCIES AND INSTALLATION
This script does not need any dependencies or progress bar.
Just place the script under your CORE and your core scripts:
ensure Buty-VehicleShop
You must install SQL to work properly.
3. CONFIG
The following will explain all the settings, one of the most important things that I recommend you spend a few minutes to understand in order to offer your users the best possible experien
Lang = {} -- Here you can translate some important things, such as notifications.
Lang.EnterShopLocation = "~w~PRESS ~ub~[E]~wu~ ~w~TO OPEN"
Lang.SuccessBuy = "You bought a new vehicle!"
Lang.NotEnoughMoney = "Not enough money!"
Lang.Defaulter = "You are defaulter!"
Lang.SelectVehicleError = "Select a vehicle!"
Lang.InstallmentCharged = "You've been charged ${amount} for installment"
Lang.InstallmentNotEnough = "You don't have enough money (${amount}) for installment, you've been makred as defaulter!"
Lang.InstallmentChargedPenalty = "You've been charged ${amount} of total for installment and penalty"
Lang.TooManyInstallments = "You have too many installments!"
Lang.LoadingVehicle = "Previous vehicle is still loading!"
Lang.ModelNotExists = "This vehicle does not exists!"
Framework = "ESX" -- QB / ESX
Core = "es_extended" -- qb-core / es_extended / or another name
SQL = "oxmysql" -- oxmysql, mysql-async or ghmattisql
UseImage = false -- You can use the same image for all vehicles or one image for each vehicle. It will detect the image when you name it with the model name. For example blista.
DataMaxSpeed = 60 -- This depends on your vehicle add-ons. It is made for vanilla vehicles. If your add-ons cars run faster than vanilla cars you will have to put a HIGHER number here so that the number and note will automatically adjust to the new top speed.
DataAcceleration = 0.65 -- Same as above, but in this case, if your cars have a higher Acceleration than a vanilla, you will have to set a lower figure.
LicensePlateFormat = "CA_?????" -- [? - any character] [& - number] [# - letter] [_ - SPACE] MAX PLACES = 8
EnterShopMenuKey = 38 -- https://docs.fivem.net/docs/game-references/controls/
MissIntallmentPenalty = 0.30 -- Penalty percent from base installment when miss payment example: installment cost $1000 30% of this = $300
MaxFinancing = 3 -- The maximum vehicles that a player can finance. It will only allow him to finance at a time the amount you put here.
Shops = {
{
UsingLicensePlates = true, -- Do not touch it
TestDriveEnabled = true, -- Availability to test drive
TestDriveSeconds = 15, -- Test drive time in seconds
FinancingEnabled = true, -- Enabled financing
Installments = 5, -- The installments into which the total price will be divided. It is recommended to put enough so that they do not charge too much for each installment.
InstallmentsPayHours = 1, -- In hours, each quantum will charge a fee to the player.
MissIntallmentPenalty = MissIntallmentPenalty, -- Don't touch
Blip = {
Enabled = true,
Name = "VehicleShop",
Sprite = 315,
X = -38, Y = -1098, Z = 26
},
EnterShopLocation = {
X = -34, Y = -1106, Z = 25.45, H = 102.1, modelNPC = "mp_m_waremech_01",
},
PreviewLocation = { X = -43, Y = -1098, Z = 26, H = 97},
BuyCarSpawnLocation = { X = -45.65, Y = -1082.33, Z = 26.71, H = 68.71},
BuyCarSpawnLocationAdditionals = { -- This is to put several spawn coordinates when you buy a vehicle. If the place where you are going to spawn already has a vehicle parked, it will spawn at the next coordinate. To avoid collisions.
{ X = -12.05, Y = -1101.61, Z = 26.67, H = 335.27},
{ X = -50.57, Y = -1107.88, Z = 26.44, H = 68.27}
},
CameraLocation = { X = -44.8, Y = -1102.47, Z = 27, H = 339},
TestDriveLocation = { X = -1155.91, Y = -3148.17, Z = 13.94, H = 56.95},
Vehicles = { -- You can put as many categories as you want, infinite.
{Category = "Compacts", Name = "KIPTANOTA", Brand = "Maxwell", SpawnName = "ffff5asbo", Price = 4000},
{Category = "Compacts", Name = "Asbo", Brand = "Maxwell", SpawnName = "asbo", Price = 4000},
{Category = "Compacts", Name = "Blista", Brand = "Dinka", SpawnName = "blista", Price = 13000},
{Category = "Compacts", Name = "Brioso", Brand = "Grotti", SpawnName = "brioso", Price = 20000},
{Category = "Compacts", Name = "Club", Brand = "BF", SpawnName = "club", Price = 8000},
{Category = "Compacts", Name = "Dilettante", Brand = "Karin", SpawnName = "dilettante", Price = 9000},
{Category = "Compacts", Name = "Dilettante Petrol", Brand = "Karin", SpawnName = "dilettante2", Price = 12000},
{Category = "Compacts", Name = "Issi", Brand = "Maxwell", SpawnName = "issi2", Price = 7000},
{Category = "Compacts", Name = "Issi Clasic", Brand = "Dinka", SpawnName = "issi3", Price = 5000},
{Category = "Compacts", Name = "Issi Future Shock", Brand = "BF", SpawnName = "issi5",Price = 80000},
{Category = "Compacts", Name = "Issi Nightmare", Brand = "Karin", SpawnName = "issi6", Price = 80000},
{Category = "Compacts", Name = "Panto", Brand = "Benefactor", SpawnName = "panto", Price = 3200},
{Category = "Compacts", Name = "Prairie", Brand = "Bollokam", SpawnName = "prairie", Price = 30000},
{Category = "Compacts", Name = "Rhapsody", Brand = "Declasse", SpawnName = "rhapsody", Price = 10000},
{Category = "Compacts", Name = "Brioso 300", Brand = "Grotti", SpawnName = "brioso2",Price = 12000},
{Category = "Compacts", Name = "Weevil", Brand = "BF", SpawnName = "weevil", Price = 9000},
{Category = "CoupÊs", Name = "Cognoscenti Cabrio", Brand = "Enus", SpawnName = "cogcabrio", Price = 30000},
{Category = "CoupÊs", Name = "Exemplar", Brand = "Bewbauchee", SpawnName = "exemplar", Price = 40000},
{Category = "CoupÊs", Name = "F620", Brand = "Ocelot", SpawnName = "f620", Price = 32500},
{Category = "CoupÊs", Name = "Felon", Brand = "Lampadati", SpawnName = "felon",Price = 31000},
{Category = "CoupÊs", Name = "Felon GT", Brand = "Lampadati", SpawnName = "felon2", Price = 37000},
{Category = "CoupÊs", Name = "Jackal", Brand = "Ocelot", SpawnName = "jackal", Price = 19000},
{Category = "CoupÊs", Name = "Oracle", Brand = "Ãbermacht", SpawnName = "oracle", Price = 22000},
{Category = "CoupÊs", Name = "Oracle XS", Brand = "Ãbermacht", SpawnName = "oracle2", Price = 28500},
{Category = "CoupÊs", Name = "Sentinel", Brand = "Ãbermacht", SpawnName = "sentinel",Price = 30000},
{Category = "CoupÊs", Name = "Sentinel XS", Brand = "Ãbermacht", SpawnName = "sentinel2", Price = 33000},
{Category = "CoupÊs", Name = "Windsor", Brand = "Enus", SpawnName = "windsor", Price = 27000},
{Category = "CoupÊs", Name = "Windsor Drop", Brand = "Enus", SpawnName = "windsor2", Price = 34000},
{Category = "CoupÊs", Name = "Zion", Brand = "Ãbermacht", SpawnName = "zion", Price = 22000},
{Category = "CoupÊs", Name = "Zion Cabrio", Brand = "Ãbermacht", SpawnName = "zion2",Price = 28000},
{Category = "CoupÊs", Name = "Previon", Brand = "Karin", SpawnName = "previon", Price = 149000},
{Category = "CoupÊs", Name = "Champion", Brand = "Dewbauchee", SpawnName = "champion", Price = 205000},
{Category = "CoupÊs", Name = "Ignus", Brand = "Pegassi", SpawnName = "ignus",Price = 1120000},
{Category = "CoupÊs", Name = "Zeno", Brand = "ÃverflÃļd", SpawnName = "zeno", Price = 1350000},
{Category = "VÊlos", Name = "BMX", Brand = "Bike", SpawnName = "bmx",Price = 160},
{Category = "VÊlos", Name = "Cruiser", Brand = "Bike", SpawnName = "cruiser", Price = 510},
{Category = "VÊlos", Name = "Fixter", Brand = "Bike", SpawnName = "fixter", Price = 225},
{Category = "VÊlos", Name = "Scorcher", Brand = "Bike", SpawnName = "scorcher",Price = 280},
{Category = "VÊlos", Name = "Whippet Race Bike", Brand = "Bike", SpawnName = "tribike", Price = 500},
{Category = "VÊlos", Name = "Endurex Race Bike", Brand = "Bike", SpawnName = "tribike2",Price = 700},
{Category = "VÊlos", Name = "Tri-Cycles Race Bike", Brand = "Bike", SpawnName = "tribike3", Price = 520},
{Category = "Motos", Name = "Akuma", Brand = "Dinka", SpawnName = "akuma", Price = 55000},
{Category = "Motos", Name = "Avarus", Brand = "LCC", SpawnName = "avarus",Price = 20000},
{Category = "Motos", Name = "Bagger", Brand = "WMC", SpawnName = "bagger", Price = 13500},
{Category = "Motos", Name = "Bati 801", Brand = "Pegassi", SpawnName = "bati",Price = 24000},
{Category = "Motos", Name = "Bati 801RR", Brand = "Pegassi", SpawnName = "bati2", Price = 19000},
{Category = "Motos", Name = "BF400", Brand = "Nagasaki", SpawnName = "bf400", Price = 22000},
{Category = "Motos", Name = "Carbon RS", Brand = "Nagasaki", SpawnName = "carbonrs",Price = 22000},
{Category = "Motos", Name = "Chimera", Brand = "Nagasaki", SpawnName = "chimera", Price = 21000},
{Category = "Motos", Name = "Cliffhanger", Brand = "Western", SpawnName = "cliffhanger",Price = 28500},
{Category = "Motos", Name = "Daemon", Brand = "WMC", SpawnName = "daemon", Price = 14000},
{Category = "Motos", Name = "Daemon Custom", Brand = "WMC", SpawnName = "daemon2", Price = 23000},
{Category = "Motos", Name = "Defiler", Brand = "Shitzu", SpawnName = "carbonrs",Price = 22000},
{Category = "Motos", Name = "Deathbike Apocalypse", Brand = "Deathbike", SpawnName = "deathbike", Price = 30000},
{Category = "Motos", Name = "Deathbike Future Shock", Brand = "Deathbike", SpawnName = "deathbike2",Price = 30000},
{Category = "Motos", Name = "Deathbike Nightmare", Brand = "Deathbike", SpawnName = "deathbike3", Price = 30000},
{Category = "Motos", Name = "Diablous", Brand = "Principe", SpawnName = "diablous", Price = 30000},
{Category = "Motos", Name = "Diablous Custom", Brand = "Principe", SpawnName = "diablous2",Price = 38000},
{Category = "Motos", Name = "Double-T", Brand = "Dinka", SpawnName = "double", Price = 28000},
{Category = "Motos", Name = "Enduro", Brand = "Dinka", SpawnName = "enduro",Price = 5500},
{Category = "Motos", Name = "Esskey", Brand = "Degassi", SpawnName = "esskey", Price = 12000},
{Category = "Motos", Name = "Faggio Sport", Brand = "Pegassi", SpawnName = "faggio", Price = 2000},
{Category = "Motos", Name = "Faggio", Brand = "Pegassi", SpawnName = "faggio2",Price = 1900},
{Category = "Motos", Name = "Faggio Mod", Brand = "Pegassi", SpawnName = "faggio3", Price = 2500},
{Category = "Motos", Name = "FCR 1000", Brand = "Pegassi", SpawnName = "fcr",Price = 5000},
{Category = "Motos", Name = "FCR 1000 Custom", Brand = "Pegassi", SpawnName = "fcr2", Price = 19000},
{Category = "Motos", Name = "Gargoyle", Brand = "Western", SpawnName = "gargoyle", Price = 32000},
{Category = "Motos", Name = "Hakuchou", Brand = "Shitzu", SpawnName = "hakuchou",Price = 17000},
{Category = "Motos", Name = "Hakuchou Drag", Brand = "Shitzu", SpawnName = "hakuchou2", Price = 45000},
{Category = "Motos", Name = "Hexer", Brand = "LCC", SpawnName = "hexer",Price = 16000},
{Category = "Motos", Name = "Innovation", Brand = "LCC", SpawnName = "innovation", Price = 33500},
{Category = "Motos", Name = "Lectro", Brand = "Principe", SpawnName = "lectro", Price = 28000},
{Category = "Motos", Name = "Manchez", Brand = "Maibatsu", SpawnName = "manchez",Price = 8300},
{Category = "Motos", Name = "Nemesis", Brand = "Principe", SpawnName = "nemesis", Price = 20000},
{Category = "Motos", Name = "Nightblade", Brand = "WMC", SpawnName = "nightblade",Price = 23000},
{Category = "Motos", Name = "Oppressor", Brand = "Pegassi", SpawnName = "oppressor", Price = 9999999},
{Category = "Motos", Name = "PCJ-600", Brand = "Shitzu", SpawnName = "pcj", Price = 15000},
{Category = "Motos", Name = "Rat Bike", Brand = "Western", SpawnName = "ratbike",Price = 3000},
{Category = "Motos", Name = "Ruffian", Brand = "Pegassi", SpawnName = "ruffian", Price = 25000},
{Category = "Motos", Name = "Sanchez Livery", Brand = "Maibatsu", SpawnName = "sanchez",Price = 5300},
{Category = "Motos", Name = "Sanchez", Brand = "Maibastu", SpawnName = "sanchez2", Price = 5300},
{Category = "Motos", Name = "Sanctus", Brand = "LCC", SpawnName = "sanctus", Price = 35000},
{Category = "Motos", Name = "Shotaro", Brand = "Nagasaki", SpawnName = "shotaro",Price = 320000},
{Category = "Motos", Name = "Sovereign", Brand = "WMC", SpawnName = "sovereign", Price = 8000},
{Category = "Motos", Name = "Stryder", Brand = "Nagasaki", SpawnName = "stryder",Price = 50000},
{Category = "Motos", Name = "Thrust", Brand = "Dinka", SpawnName = "thrust", Price = 22000},
{Category = "Motos", Name = "Vader", Brand = "Shitzu", SpawnName = "vader", Price = 7200},
{Category = "Motos", Name = "Vindicator", Brand = "Dinka", SpawnName = "vindicator",Price = 19000},
{Category = "Motos", Name = "Vortex", Brand = "Pegassi", SpawnName = "vortex", Price = 31000},
{Category = "Motos", Name = "Wolfsbane", Brand = "Western", SpawnName = "wolfsbane",Price = 14000},
{Category = "Motos", Name = "Zombie Bobber", Brand = "Western", SpawnName = "zombiea", Price = 28000},
{Category = "Motos", Name = "Zombie Chopper", Brand = "Western", SpawnName = "zombieb",Price = 27000},
{Category = "Motos", Name = "Manchez Scout", Brand = "Maibatsu", SpawnName = "manchez2", Price = 14000},
{Category = "Motos", Name = "Shinobi", Brand = "Nagasaki", SpawnName = "shinobi",Price = 25000},
{Category = "Motos", Name = "Reever", Brand = "Western", SpawnName = "reever", Price = 25000},
{Category = "Muscle", Name = "Blade", Brand = "Vapid", SpawnName = "blade",Price = 23500},
{Category = "Muscle", Name = "Buccaneer", Brand = "Albany", SpawnName = "buccaneer", Price = 14000},
{Category = "Muscle", Name = "Buccaneer Rider", Brand = "Albany", SpawnName = "buccaneer2",Price = 25000},
{Category = "Muscle", Name = "Chino", Brand = "Vapid", SpawnName = "chino", Price = 25000},
{Category = "Muscle", Name = "Chino Luxe", Brand = "Vapid", SpawnName = "chino2",Price = 8000},
{Category = "Muscle", Name = "Clique", Brand = "Vapid", SpawnName = "clique", Price = 20000},
{Category = "Muscle", Name = "Coquette Blackfin", Brand = "Invetero", SpawnName = "coquette3",Price = 180000},
{Category = "Muscle", Name = "Dominator", Brand = "Vapid", SpawnName = "dominator",Price = 62500},
{Category = "Muscle", Name = "PiÃwasser Dominator", Brand = "Vapid", SpawnName = "dominator2", Price = 50000},
{Category = "Muscle", Name = "Dominator GTX", Brand = "Vapid", SpawnName = "dominator3",Price = 27000},
{Category = "Muscle", Name = "Dominator ASP", Brand = "Vapid", SpawnName = "dominator7",Price = 110000},
{Category = "Muscle", Name = "Dominator GTT", Brand = "Vapid", SpawnName = "dominator8", Price = 80000},
{Category = "Muscle", Name = "Dukes", Brand = "Imponte", SpawnName = "dukes",Price = 23500},
{Category = "Muscle", Name = "Beater Dukes", Brand = "Imponte", SpawnName = "dukes3",Price = 45000},
{Category = "Muscle", Name = "Faction", Brand = "Willard", SpawnName = "faction", Price = 17000},
{Category = "Muscle", Name = "Faction Rider", Brand = "Willard", SpawnName = "faction2",Price = 19000},
{Category = "Muscle", Name = "Faction Custom Donk", Brand = "Willard", SpawnName = "faction3", Price = 35000},
{Category = "Muscle", Name = "Ellie", Brand = "Vapid", SpawnName = "dukes3",Price = 42250},
{Category = "Muscle", Name = "Gauntlet", Brand = "Bravado", SpawnName = "gauntlet", Price = 28500},
{Category = "Muscle", Name = "Redwood Gauntlet", Brand = "Bravado", SpawnName = "gauntlet2",Price = 70000},
{Category = "Muscle", Name = "Classic Gauntlet", Brand = "Bravado", SpawnName = "gauntlet3", Price = 75000},
{Category = "Muscle", Name = "Gauntlet Hellfire", Brand = "Vapid", SpawnName = "gauntlet4",Price = 80000},
{Category = "Muscle", Name = "Gauntlet Classic Custom", Brand = "Bravado", SpawnName = "gauntlet5", Price = 120000},
{Category = "Muscle", Name = "Hermes", Brand = "Albany", SpawnName = "hermes",Price = 535000},
{Category = "Muscle", Name = "Hotknife", Brand = "Vapid", SpawnName = "hotknife", Price = 90000},
{Category = "Muscle", Name = "Hustle", Brand = "Vapid", SpawnName = "hustler",Price = 95000},
{Category = "Muscle", Name = "Impaler", Brand = "Vapid", SpawnName = "impaler", Price = 95000},
{Category = "Muscle", Name = "Impaler Future Shock", Brand = "Vapid", SpawnName = "impaler3", Price = 95000},
{Category = "Muscle", Name = "Impaler Nightmare", Brand = "Vapid", SpawnName = "impaler4",Price = 95000},
{Category = "Muscle", Name = "Imperator Future Shock", Brand = "Vapid", SpawnName = "imperator2",Price = 95000},
{Category = "Muscle", Name = "Imperator Nightmare", Brand = "Vapid", SpawnName = "imperator3", Price = 95000},
{Category = "Muscle", Name = "Lurcher", Brand = "Bravado", SpawnName = "lurcher",Price = 21000},
{Category = "Muscle", Name = "Moonbeam", Brand = "Declasse", SpawnName = "moonbeam", Price = 13000},
{Category = "Muscle", Name = "Moonbeam Custom", Brand = "Declasse", SpawnName = "moonbeam2",Price = 15000},
{Category = "Muscle", Name = "Nightshade", Brand = "Imponte", SpawnName = "nightshade", Price = 70000},
{Category = "Muscle", Name = "Peyote Gasser", Brand = "Vapid", SpawnName = "peyote2",Price = 40000},
{Category = "Muscle", Name = "Phoenix", Brand = "Imponte", SpawnName = "phoenix", Price = 65000},
{Category = "Muscle", Name = "Picador", Brand = "Cheval", SpawnName = "picador",Price = 20000},
{Category = "Muscle", Name = "Ratloader", Brand = "Ratloader", SpawnName = "ratloader2", Price = 20000},
{Category = "Muscle", Name = "Ruiner", Brand = "Imponte", SpawnName = "ruiner",Price = 29000},
{Category = "Muscle", Name = "Ruiner 2000", Brand = "Imponte", SpawnName = "ruiner2", Price = 50000},
{Category = "Muscle", Name = "Sabre GT Turbo", Brand = "Declasse", SpawnName = "sabregt",Price = 23000},
{Category = "Muscle", Name = "Sabre GT Turbo Custom", Brand = "Declasse", SpawnName = "sabregt", Price = 26500},
{Category = "Muscle", Name = "Slam Van", Brand = "Vapid", SpawnName = "slamvan",Price = 30000},
{Category = "Muscle", Name = "Lost Slam Van", Brand = "Vapid", SpawnName = "slamvan2", Price = 90000},
{Category = "Muscle", Name = "Slam Van Custom", Brand = "Vapid", SpawnName = "slamvan3",Price = 17000},
{Category = "Muscle", Name = "Stallion", Brand = "Declasse", SpawnName = "stalion", Price =33000},
{Category = "Muscle", Name = "Stallion Burgershot", Brand = "Declasse", SpawnName = "stalion2",Price = 40000},
{Category = "Muscle", Name = "Tampa", Brand = "Declasse", SpawnName = "tampa", Price = 24500},
{Category = "Muscle", Name = "Tulip", Brand = "Declasse", SpawnName = "tulip",Price = 80000},
{Category = "Muscle", Name = "Vamos", Brand = "Declasse", SpawnName = "vamos", Price =30000},
{Category = "Muscle", Name = "Vigero", Brand = "Declasse", SpawnName = "vigero",Price = 39500},
{Category = "Muscle", Name = "Virgo", Brand = "Albany", SpawnName = "virgo", Price = 22000},
{Category = "Muscle", Name = "Virgo Custom Classic", Brand = "Dundreary", SpawnName = "virgo2",Price = 21000},
{Category = "Muscle", Name = "Virgo Classic", Brand = "Dundreary", SpawnName = "virgo3", Price =21000},
{Category = "Muscle", Name = "Voodoo", Brand = "Declasse", SpawnName = "voodoo",Price = 13000},
{Category = "Muscle", Name = "Yosemite", Brand = "Declasse", SpawnName = "yosemite", Price = 19500},
{Category = "Muscle", Name = "Yosemite Drift", Brand = "Declasse", SpawnName = "yosemite2",Price = 55000},
{Category = "Muscle", Name = "Yosemite Rancher", Brand = "Declasse", SpawnName = "yosemite3", Price =425000},
{Category = "Hors-Route", Name = "Bf Injection", Brand = "Annis", SpawnName = "bfinjection", Price =9000},
{Category = "Hors-Route", Name = "Bifta", Brand = "Annis", SpawnName = "bifta",Price = 15500},
{Category = "Hors-Route", Name = "Blazer", Brand = "Annis", SpawnName = "blazer", Price = 7500},
{Category = "Hors-Route", Name = "Blazer Lifeguard", Brand = "Nagasaki", SpawnName = "blazer2",Price = 7000},
{Category = "Hors-Route", Name = "Blazer Hot Rod", Brand = "Nagasaki", SpawnName = "blazer3", Price = 7000},
{Category = "Hors-Route", Name = "Blazer Sport", Brand = "Annis", SpawnName = "blazer4", Price =9250},
{Category = "Hors-Route", Name = "Blazer Aqua", Brand = "Nagasaki", SpawnName = "blazer5",Price = 40000},
{Category = "Hors-Route", Name = "Brawler", Brand = "Annis", SpawnName = "brawler", Price = 40000},
{Category = "Hors-Route", Name = "Caracara 4x4", Brand = "Vapid", SpawnName = "caracara2", Price = 80000},
{Category = "Hors-Route", Name = "Dubsta 6X6", Brand = "Annis", SpawnName = "dubsta3", Price = 34000},
{Category = "Hors-Route", Name = "Dune Buggy", Brand = "Annis", SpawnName = "dune", Price =14000},
{Category = "Hors-Route", Name = "Everon", Brand = "Karin", SpawnName = "everon",Price = 60000},
{Category = "Hors-Route", Name = "Freecrawler", Brand = "Canis", SpawnName = "freecrawler", Price = 24000},
{Category = "Hors-Route", Name = "Hellion", Brand = "Annis", SpawnName = "hellion", Price = 38000},
{Category = "Hors-Route", Name = "Kalahari", Brand = "Canis", SpawnName = "kalahari", Price = 14000},
{Category = "Hors-Route", Name = "Kamacho", Brand = "Canis", SpawnName = "kamacho", Price =50000},
{Category = "Hors-Route", Name = "Mesa Merryweather", Brand = "Canis", SpawnName = "mesa3",Price = 70000},
{Category = "Hors-Route", Name = "Outlaw", Brand = "Nagasaki", SpawnName = "outlaw", Price = 15000},
{Category = "Hors-Route", Name = "Rancher XL", Brand = "Declasse", SpawnName = "rancherxl", Price = 24000},
{Category = "Hors-Route", Name = "Rebel", Brand = "Vapid", SpawnName = "rebel2", Price = 20000},
{Category = "Hors-Route", Name = "Riata", Brand = "Vapid", SpawnName = "riata", Price =38000},
{Category = "Hors-Route", Name = "Sandking XL", Brand = "Vapid", SpawnName = "sandking",Price = 25000},
{Category = "Hors-Route", Name = "Sandking SWB", Brand = "Vapid", SpawnName = "sandking2", Price = 38000},
{Category = "Hors-Route", Name = "Trophy Truck", Brand = "Vapid", SpawnName = "trophytruck", Price = 60000},
{Category = "Hors-Route", Name = "Desert Raid", Brand = "Vapid", SpawnName = "trophytruck2", Price =80000},
{Category = "Hors-Route", Name = "Vagrant", Brand = "Maxwell", SpawnName = "vagrant",Price = 50000},
{Category = "Hors-Route", Name = "Verus", Brand = "Dinka", SpawnName = "verus", Price = 20000},
{Category = "Hors-Route", Name = "Winky", Brand = "Vapid", SpawnName = "winky", Price = 10000},
{Category = "Sport", Name = "Alpha", Brand = "Albany", SpawnName = "alpha", Price = 53000},
{Category = "Sport", Name = "Banshee", Brand = "Bravado", SpawnName = "banshee", Price =56000},
{Category = "Sport", Name = "Bestia GTS", Brand = "Grotti", SpawnName = "bestiagts",Price = 37000},
{Category = "Sport", Name = "Blista Compact", Brand = "Dinka", SpawnName = "blista2", Price = 18950},
{Category = "Sport", Name = "Blista Go Go Monkey", Brand = "Dinka", SpawnName = "blista3", Price = 15000},
{Category = "Sport", Name = "Buffalo", Brand = "Bravado", SpawnName = "buffalo", Price = 18750},
{Category = "Sport", Name = "Buffalo S", Brand = "Bravado", SpawnName = "buffalo2", Price =24500},
{Category = "Sport", Name = "Carbonizzare", Brand = "Grotti", SpawnName = "carbonizzare",Price = 155000},
{Category = "Sport", Name = "Comet", Brand = "Pfister", SpawnName = "comet2", Price = 130000},
{Category = "Sport", Name = "Comet Retro Custom", Brand = "Pfister", SpawnName = "comet3", Price = 175000},
{Category = "Sport", Name = "Comet Safari", Brand = "Pfister", SpawnName = "comet4", Price = 110000},
{Category = "Sport", Name = "Comet SR", Brand = "Pfister", SpawnName = "comet5", Price =155000},
{Category = "Sport", Name = "Coquette", Brand = "Invetero", SpawnName = "coquette",Price = 145000},
{Category = "Sport", Name = "Coquette Classic", Brand = "Invetero", SpawnName = "coquette2", Price = 165000},
{Category = "Sport", Name = "Coquette D10", Brand = "Invetero", SpawnName = "coquette4", Price = 220000},
{Category = "Sport", Name = "8F Drafter", Brand = "Obey", SpawnName = "drafter", Price = 80000},
{Category = "Sport", Name = "Deveste", Brand = "Principe", SpawnName = "deveste", Price =234000},
{Category = "Sport", Name = "Elegy Retro Custom", Brand = "Annis", SpawnName = "elegy",Price = 145000},
{Category = "Sport", Name = "Elegy RH8", Brand = "Annis", SpawnName = "elegy2", Price = 150000},
{Category = "Sport", Name = "Feltzer", Brand = "Benefactor", SpawnName = "feltzer2", Price = 97000},
{Category = "Sport", Name = "Flash GT", Brand = "Vapid", SpawnName = "flashgt", Price = 48000},
{Category = "Sport", Name = "Furore GT", Brand = "Lampadati", SpawnName = "furoregt", Price = 78000},
{Category = "Sport", Name = "8F Drafter", Brand = "Obey", SpawnName = "drafter", Price = 80000},
{Category = "Sport", Name = "Deveste", Brand = "Principe", SpawnName = "deveste", Price =234000},
{Category = "Sport", Name = "Elegy Retro Custom", Brand = "Annis", SpawnName = "elegy",Price = 145000},
{Category = "Sport", Name = "Elegy RH8", Brand = "Annis", SpawnName = "elegy2", Price = 150000},
{Category = "Sport", Name = "Feltzer", Brand = "Benefactor", SpawnName = "feltzer2", Price = 97000},
{Category = "Sport", Name = "Flash GT", Brand = "Vapid", SpawnName = "flashgt", Price = 48000},
{Category = "Sport", Name = "Furore GT", Brand = "Lampadati", SpawnName = "furoregt", Price = 78000},
{Category = "Sport", Name = "Futo", Brand = "Karin", SpawnName = "futo",Price = 175000},
{Category = "Sport", Name = "GB 200", Brand = "Vapid", SpawnName = "gb200", Price = 140000},
{Category = "Sport", Name = "Komoda", Brand = "Lampadati", SpawnName = "komoda", Price = 55000},
{Category = "Sport", Name = "Imorgon", Brand = "ÃverflÃļd", SpawnName = "imorgon", Price = 120000},
{Category = "Sport", Name = "Issi Sport", Brand = "Weeny", SpawnName = "issi7", Price =260000},
{Category = "Sport", Name = "Jugular", Brand = "Ocelot", SpawnName = "jugular", Price =80000},
{Category = "Sport", Name = "Jester", Brand = "Dinka", SpawnName = "jester", Price = 132000},
{Category = "Sport", Name = "Jester Racecar", Brand = "Dinka", SpawnName = "jester2", Price = 210000},
{Category = "Sport", Name = "Jester Classic", Brand = "Dinka", SpawnName = "jester3", Price = 85000},
{Category = "Sport", Name = "Khamelion", Brand = "Bravado", SpawnName = "buffalo2", Price =24500},
{Category = "Sport", Name = "Kuruma", Brand = "Hijak", SpawnName = "khamelion",Price = 90000},
{Category = "Sport", Name = "Kuruma 2", Brand = "Karin", SpawnName = "kuruma", Price = 72000},
{Category = "Sport", Name = "Locust", Brand = "Ocelot", SpawnName = "locust", Price = 200000},
{Category = "Sport", Name = "Lynx", Brand = "Ocelot", SpawnName = "lynx", Price = 150000},
{Category = "Sport", Name = "Massacro", Brand = "Dewbauchee", SpawnName = "massacro", Price =110000},
{Category = "Sport", Name = "Massacro Racecar", Brand = "Dewbauchee", SpawnName = "massacro2",Price = 80000},
{Category = "Sport", Name = "Neo", Brand = "Vysser", SpawnName = "neo", Price = 230000},
{Category = "Sport", Name = "Neon", Brand = "Pfister", SpawnName = "neon", Price = 220000},
{Category = "Sport", Name = "9F", Brand = "Obey", SpawnName = "ninef", Price = 95000},
{Category = "Sport", Name = "9F Cabrio", Brand = "Obey", SpawnName = "ninef2", Price = 105000},
{Category = "Sport", Name = "Omnis", Brand = "Wow", SpawnName = "omnis", Price =90000},
{Category = "Sport", Name = "Paragon", Brand = "Enus", SpawnName = "paragon",Price = 60000},
{Category = "Sport", Name = "Pariah", Brand = "Ocelot", SpawnName = "pariah", Price = 90000},
{Category = "Sport", Name = "Penumbra", Brand = "Maibatsu", SpawnName = "penumbra", Price = 22000},
{Category = "Sport", Name = "Penumbra FF", Brand = "Maibatsu", SpawnName = "penumbra2", Price = 30000},
{Category = "Sport", Name = "Rapid GT", Brand = "Dewbauchee", SpawnName = "rapidgt", Price = 8600},
{Category = "Sport", Name = "Rapid GT Convertible", Brand = "Dewbauchee", SpawnName = "rapidgt2",Price = 92000},
{Category = "Sport", Name = "Raptor", Brand = "BF", SpawnName = "raptor", Price = 90000},
{Category = "Sport", Name = "Revolter", Brand = "Ãbermacht", SpawnName = "revolter", Price = 95000},
{Category = "Sport", Name = "Ruston", Brand = "Hijak", SpawnName = "ruston", Price = 130000},
{Category = "Sport", Name = "Schafter", Brand = "Benefactor", SpawnName = "schafter2", Price =16000},
{Category = "Sport", Name = "Schafter V12", Brand = "Benefactor", SpawnName = "schafter3", Price =35000},
{Category = "Sport", Name = "Schafter LWB", Brand = "Benefactor", SpawnName = "schafter4", Price = 21000},
{Category = "Sport", Name = "Schlagen GT", Brand = "Benefactor", SpawnName = "schlagen", Price = 160000},
{Category = "Sport", Name = "Schwartzer", Brand = "Benefactor", SpawnName = "schwarzer", Price = 47000},
{Category = "Sport", Name = "Sentinel Classic", Brand = "Ãbermacht", SpawnName = "sentinel3", Price = 70000},
{Category = "Sport", Name = "Seven-70", Brand = "Dewbauchee", SpawnName = "seven70", Price = 140000},
{Category = "Sport", Name = "Specter", Brand = "Dewbauchee", SpawnName = "specter", Price =160000},
{Category = "Sport", Name = "Streiter", Brand = "Benefactor", SpawnName = "streiter", Price =40000},
{Category = "Sport", Name = "Sugoi", Brand = "Dinka", SpawnName = "sugoi", Price = 85000},
{Category = "Sport", Name = "Sultan", Brand = "Karin", SpawnName = "sultan", Price = 50000},
{Category = "Sport", Name = "Sultan Custom", Brand = "Karin", SpawnName = "sultan2", Price = 55000},
{Category = "Sport", Name = "Surano", Brand = "Benefactor", SpawnName = "surano", Price = 80000},
{Category = "Sport", Name = "Tampa Drift", Brand = "Declasse", SpawnName = "tampa2", Price =80000},
{Category = "Sport", Name = "Tropos Rallye", Brand = "Lampadati", SpawnName = "tropos", Price =65000},
{Category = "Sport", Name = "Verlierer", Brand = "Verlierer", SpawnName = "verlierer2", Price =90500},
{Category = "Sport", Name = "V-STR", Brand = "Albany", SpawnName = "vstr", Price = 80000},
{Category = "Sport", Name = "Itali RSX", Brand = "Progen", SpawnName = "italirsx", Price = 206000},
{Category = "Sport", Name = "ZR350", Brand = "Annis", SpawnName = "zr350", Price = 38000},
{Category = "Sport", Name = "Calico GTF", Brand = "Karin", SpawnName = "calico", Price =39000},
{Category = "Sport", Name = "Futo GTX", Brand = "Karin", SpawnName = "futo2", Price =39000},
{Category = "Sport", Name = "Euros", Brand = "Annis", SpawnName = "euros", Price = 80000},
{Category = "Sport", Name = "Jester RR", Brand = "Dinka", SpawnName = "jester4", Price = 240000},
{Category = "Sport", Name = "Remus", Brand = "Annis", SpawnName = "remus", Price =48000},
{Category = "Sport", Name = "Comet S2", Brand = "Pfister", SpawnName = "comet6", Price = 230000},
{Category = "Sport", Name = "Growler", Brand = "Pfister", SpawnName = "growler", Price =205000},
{Category = "Sport", Name = "Vectre", Brand = "Emperor", SpawnName = "vectre", Price = 80000},
{Category = "Sport", Name = "Cypher", Brand = "Ãbermacht", SpawnName = "cypher", Price =15500},
{Category = "Sport", Name = "Sultan Classic Custom", Brand = "Karin", SpawnName = "sultan3", Price = 56000},
{Category = "Sport", Name = "RT3000", Brand = "Dinka", SpawnName = "rt3000", Price = 65000},
{Category = "Sedans", Name = "Asea", Brand = "Declasse", SpawnName = "asea", Price = 2500},
{Category = "Sedans", Name = "Asterope", Brand = "Karine", SpawnName = "asterope", Price =11000},
{Category = "Sedans", Name = "Cognoscenti 55", Brand = "Enus", SpawnName = "cog55",Price = 22000},
{Category = "Sedans", Name = "Cognoscenti", Brand = "Enus", SpawnName = "cognoscenti", Price = 22500},
{Category = "Sedans", Name = "Emperor", Brand = "Albany", SpawnName = "emperor", Price = 4250},
{Category = "Sedans", Name = "Fugitive", Brand = "Cheval", SpawnName = "fugitive", Price = 20000},
{Category = "Sedans", Name = "Glendale", Brand = "Benefactor", SpawnName = "glendale", Price =3400},
{Category = "Sedans", Name = "Glendale Custom", Brand = "Benefactor", SpawnName = "glendale2",Price = 12000},
{Category = "Sedans", Name = "Ingot", Brand = "Vulcar", SpawnName = "ingot", Price = 4999},
{Category = "Sedans", Name = "Intruder", Brand = "Karin", SpawnName = "intruder", Price = 11250},
{Category = "Sedans", Name = "Premier", Brand = "Declasse", SpawnName = "premier", Price = 12000},
{Category = "Sedans", Name = "Primo", Brand = "Albany", SpawnName = "primo", Price =5000},
{Category = "Sedans", Name = "Primo Custom", Brand = "Albany", SpawnName = "primo2",Price = 14500},
{Category = "Sedans", Name = "Regina", Brand = "Dundreary", SpawnName = "regina", Price = 7000},
{Category = "Sedans", Name = "Stafford", Brand = "Enus", SpawnName = "stafford", Price = 30000},
{Category = "Sedans", Name = "Stanier", Brand = "Vapid", SpawnName = "stanier", Price = 19000},
{Category = "Sedans", Name = "Stratum", Brand = "Zirconium", SpawnName = "stratum", Price =15},
{Category = "Sedans", Name = "Stretch", Brand = "Dundreadry", SpawnName = "stretch",Price = 19000},
{Category = "Sedans", Name = "Super Diamond", Brand = "Enus", SpawnName = "superd", Price = 17000},
{Category = "Sedans", Name = "Surge", Brand = "Cheval", SpawnName = "surge", Price = 20000},
{Category = "Sedans", Name = "Tailgaiter", Brand = "Obey", SpawnName = "tailgater", Price = 22000},
{Category = "Sedans", Name = "Warrener", Brand = "Vulcar", SpawnName = "warrener", Price =4000},
{Category = "Sedans", Name = "Washington", Brand = "Albany", SpawnName = "washington",Price = 7000},
{Category = "Sedans", Name = "Tailgater S", Brand = "Obey", SpawnName = "tailgater2", Price = 51000},
{Category = "Sedans", Name = "Cinquemila", Brand = "Lampadati", SpawnName = "cinquemila", Price = 125000},
{Category = "Sedans", Name = "I-Wagen", Brand = "Obey", SpawnName = "iwagen", Price = 225000},
{Category = "Sedans", Name = "Astron", Brand = "Pfister", SpawnName = "astron", Price =150000},
{Category = "Sedans", Name = "Baller ST", Brand = "Gallivanter", SpawnName = "baller7",Price = 145000},
{Category = "Sedans", Name = "Comet", Brand = "S2 Cabrio", SpawnName = "somet7", Price = 25000},
{Category = "Sedans", Name = "Deity", Brand = "Enus", SpawnName = "deity", Price = 505000},
{Category = "Sedans", Name = "Jubilee", Brand = "Enus", SpawnName = "jubilee", Price = 485000},
{Category = "Sedans", Name = "Patriot Military", Brand = "Mil-Spec", SpawnName = "patriot3", Price = 270000},
{Category = "SUV", Name = "Baller", Brand = "Gallivanter", SpawnName = "baller", Price = 22000},
{Category = "SUV", Name = "Baller II", Brand = "Gallivanter", SpawnName = "baller2", Price =15000},
{Category = "SUV", Name = "Baller LE", Brand = "Gallivanter", SpawnName = "baller3",Price = 15000},
{Category = "SUV", Name = "Baller LE LWB", Brand = "Gallivanter", SpawnName = "baller4", Price = 29000},
{Category = "SUV", Name = "Baller LE 2", Brand = "Gallivanter", SpawnName = "baller5", Price = 78000},
{Category = "SUV", Name = "Baller LE LWB 2", Brand = "Gallivanter", SpawnName = "baller", Price = 82000},
{Category = "SUV", Name = "BeeJay XL", Brand = "Karin", SpawnName = "baller2", Price =19000},
{Category = "SUV", Name = "Cavalcade", Brand = "Albany", SpawnName = "baller3",Price = 14000},
{Category = "SUV", Name = "Cavalcade II", Brand = "Albany", SpawnName = "baller4", Price = 16500},
{Category = "SUV", Name = "Contender", Brand = "Vapid", SpawnName = "baller5", Price = 35000},
{Category = "SUV", Name = "Dubsta", Brand = "Benefactor", SpawnName = "dubsta", Price = 19000},
{Category = "SUV", Name = "Dubsta Luxury", Brand = "Benefactor", SpawnName = "dubsta2", Price =19500},
{Category = "SUV", Name = "FQ2", Brand = "Fathom", SpawnName = "fq2",Price = 18500},
{Category = "SUV", Name = "Granger", Brand = "Declasse", SpawnName = "granger", Price = 22000},
{Category = "SUV", Name = "Gresley", Brand = "Bravado", SpawnName = "gresley", Price = 25000},
{Category = "SUV", Name = "Habanero", Brand = "Emperor", SpawnName = "habanero", Price = 19000},
{Category = "SUV", Name = "Huntley S", Brand = "Enus", SpawnName = "huntley", Price =19500},
{Category = "SUV", Name = "Landstalker", Brand = "Dundreadry", SpawnName = "landstalker",Price = 18500},
{Category = "SUV", Name = "Landstalker XL", Brand = "Dundreadry", SpawnName = "landstalker2", Price = 22000},
{Category = "SUV", Name = "Mesa", Brand = "Canis", SpawnName = "mesa", Price = 25000},
{Category = "SUV", Name = "Novak", Brand = "Lampadati", SpawnName = "novak", Price = 70000},
{Category = "SUV", Name = "Patriot", Brand = "Mammoth", SpawnName = "patriot", Price =21000},
{Category = "SUV", Name = "Patriot Stretch", Brand = "Mammoth", SpawnName = "patriot2",Price = 21000},
{Category = "SUV", Name = "Radius", Brand = "Vapid", SpawnName = "radi", Price = 18000},
{Category = "SUV", Name = "Rebla GTS", Brand = "Ãbermacht", SpawnName = "rebla", Price = 21000},
{Category = "SUV", Name = "Rocoto", Brand = "Obey", SpawnName = "rocoto", Price = 13000},
{Category = "SUV", Name = "Seminole", Brand = "Canis", SpawnName = "seminole", Price =20000},
{Category = "SUV", Name = "Seminole Frontier", Brand = "Canis", SpawnName = "seminole2",Price = 13000},
{Category = "SUV", Name = "Serrano", Brand = "Benefactor", SpawnName = "serrano", Price = 48000},
{Category = "SUV", Name = "Toros", Brand = "Pegassi", SpawnName = "toros", Price = 65000},
{Category = "SUV", Name = "XLS", Brand = "Benefactor", SpawnName = "xls", Price = 17000},
{Category = "SUV", Name = "Granger 3600LX", Brand = "Declasse", SpawnName = "grander2", Price = 221000},
}
},
}
This file is for you to add all the integrations you require. For example the exports of the vehicle key system, notifications.... you use, the functions of your server...
You usually have to check the exports or functions in the documentation of the scripts you want to integrate with Buty-VehicleShop.
It is recommended that many of the modifications to the OPENFUNCTION files be made by a programmer with LUA and FiveM ideas.
-- Here you will add the export of your notifications
RegisterNetEvent('VehicleShop:ShowNotification')
AddEventHandler('VehicleShop:ShowNotification', function(message, t)
Notification(message, t)
end)
function Notification(message, t)
if Framework == "ESX" then ESX.ShowNotification(message, t, 5000)
elseif Framework == "QB" then QB.Functions.Notify(message, t, 5000) end
end
function StartSetVehicleOwner(vehicle, props, netid, licensePlate, spawnName)
if Framework == "ESX" then props = ESX.Game.GetVehicleProperties(vehicle) end
if Framework == "QB" then TriggerServerEvent("qb-vehiclekeys:server:AcquireVehicleKeys", licensePlate) end
TriggerServerEvent("VehicleShop:SetVehicleOwner", GetPlayerServerId(PlayerId()), string.lower(spawnName), licensePlate, netid, props)
end
-- Here if you want to add a code snippet for when you open the menu
RegisterNetEvent("VehicleShop:onMenuOpen")
AddEventHandler("VehicleShop:onMenuOpen", function()
end)
-- Here in case you want to add a code snippet for when you close the menu
RegisterNetEvent("VehicleShop:onMenuClose")
AddEventHandler("VehicleShop:onMenuClose", function()
end)
-- Here if you want to add a code fragment for when you start testing the vehicle
RegisterNetEvent("VehicleShop:onStartTestDrive")
AddEventHandler("VehicleShop:onStartTestDrive", function()
end)
-- Here in case you want to add a code snippet for when you finish testing the vehicle
RegisterNetEvent("VehicleShop:onFinishTestDrive")
AddEventHandler("VehicleShop:onFinishTestDrive", function()
end)
-- Here if you want to add a code fragment to delete the car when you stop testing it. In case you use AdvancedParking for example
RegisterNetEvent("VehicleShop:deleteVehicle")
AddEventHandler("VehicleShop:deleteVehicle", function(vehicle)
end)
It is recommended that many of the modifications to the OPENFUNCTION files be made by a programmer with LUA and FiveM ideas.
-- Here in case your server uses another type of system to make someone the owner of a vehicle.
RegisterNetEvent('VehicleShop:SetVehicleOwner')
AddEventHandler('VehicleShop:SetVehicleOwner', function(player, vehicleName, licensePlate, vehNet, vehicleProps)
if Framework == "ESX" then
local user = ESX.GetPlayerFromId(player)
local currentVehicle = NetworkGetEntityFromNetworkId(vehNet)
vehicleProps.plate = licensePlate
MySQL.insert('INSERT INTO owned_vehicles (owner, plate, vehicle) VALUES (?, ?, ?)', {user.identifier, vehicleProps.plate, json.encode(vehicleProps)},
function(id)
end)
elseif Framework == "QB" then
local vehicle = QB.Shared.Vehicles[vehicleName]
local user = QB.Functions.GetPlayer(player)
if SQL == "oxmysql" then
MySQL.Async.insert('INSERT INTO player_vehicles (license, citizenid, vehicle, hash, mods, plate, state) VALUES (?, ?, ?, ?, ?, ?, ?)', {
user.PlayerData.license,
user.PlayerData.citizenid,
vehicle.model,
vehicle.hash,
'',
licensePlate,
0
})
elseif SQL == "mysql-async" then
MySQL.Async.execute('INSERT INTO player_vehicles (license, citizenid, vehicle, hash, mods, plate, state) VALUES (@1, @2, @3, @4, @5, @6, @7)',
{ ['@1'] = user.PlayerData.license, ['@2'] = user.PlayerData.citizenid, ['@3'] = vehicle.model, ['@4'] = vehicle.hash, ['@5'] = '', ['@6'] = licensePlate, ['@7'] = 0 },
function(affectedRows)
end
)
elseif SQL == "ghmattisql" then
exports.ghmattimysql:execute("INSERT INTO player_vehicles (license, citizenid, vehicle, hash, mods, plate, state) VALUES (@1, @2, @3, @4, @5, @6, @7)",
{ ['@1'] = user.PlayerData.license, ['@2'] = user.PlayerData.citizenid, ['@3'] = vehicle.model, ['@4'] = vehicle.hash, ['@5'] = '', ['@6'] = licensePlate, ['@7'] = 0 },
function(result)
end)
end
end
end)
-- Here in case your server uses another type of system to get the money that a player has
function CurrentMoney(user, payType)
if Framework == "ESX" then
--local user = ESX.GetPlayerFromId(playerId)
return user.getAccount(payType).money
end
if Framework == "QB" then
--local user = QB.Functions.GetPlayer(playerId)
return user.PlayerData.money[payType]
end
end
-- here in case your server uses another type of system to charge money to the player
function ChargeMoney(user, payType, price, reason)
if Framework == "ESX" then
--local user = ESX.GetPlayerFromId(playerId)
user.removeAccountMoney(payType, price)
end
if Framework == "QB" then
--local user = QB.Functions.GetPlayer(playerId)
user.Functions.RemoveMoney(payType, price, reason)
end
end
```
If you want to edit the aesthetics or design. You have the HTML open so you can modify the style and everything as you want.
The script is RESPONSIVE for all resolutions as well.
Last updated