mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 13:01:34 +00:00
chore(coding-style): update
- Adding the .editorconfig file - Ensure there's a trailing comma - Ensure there's a space before parameter when declaring a function - Ensure there's no empty line before block declaration - Ensure 2 spaces is used to indentate
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
+15
-15
@@ -3,22 +3,22 @@ resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
|
||||
description 'ESX Vehicle Shop'
|
||||
|
||||
server_scripts {
|
||||
'@mysql-async/lib/MySQL.lua',
|
||||
'@es_extended/locale.lua' ,
|
||||
'locales/br.lua' ,
|
||||
'locales/de.lua' ,
|
||||
'locales/en.lua' ,
|
||||
'locales/fr.lua' ,
|
||||
'config.lua',
|
||||
'server/main.lua'
|
||||
'@mysql-async/lib/MySQL.lua',
|
||||
'@es_extended/locale.lua' ,
|
||||
'locales/br.lua' ,
|
||||
'locales/de.lua' ,
|
||||
'locales/en.lua' ,
|
||||
'locales/fr.lua' ,
|
||||
'config.lua',
|
||||
'server/main.lua'
|
||||
}
|
||||
|
||||
client_scripts {
|
||||
'@es_extended/locale.lua' ,
|
||||
'locales/br.lua' ,
|
||||
'locales/de.lua' ,
|
||||
'locales/en.lua' ,
|
||||
'locales/fr.lua' ,
|
||||
'config.lua',
|
||||
'client/main.lua'
|
||||
'@es_extended/locale.lua' ,
|
||||
'locales/br.lua' ,
|
||||
'locales/de.lua' ,
|
||||
'locales/en.lua' ,
|
||||
'locales/fr.lua' ,
|
||||
'config.lua',
|
||||
'client/main.lua'
|
||||
}
|
||||
|
||||
+874
-1033
File diff suppressed because one or more lines are too long
+33
-33
@@ -1,49 +1,49 @@
|
||||
Config = {}
|
||||
Config.DrawDistance = 100.0
|
||||
Config.MarkerColor = {r = 120, g = 120, b = 240}
|
||||
Config.MarkerColor = { r = 120, g = 120, b = 240 }
|
||||
Config.EnablePlayerManagement = false -- If set to true, you need esx_addonaccount, esx_billing and esx_society
|
||||
Config.EnablePvCommand = true
|
||||
Config.EnableOwnedVehicles = true
|
||||
Config.EnableSocietyOwnedVehicles = false
|
||||
Config.ResellPercentage = 50
|
||||
Config.Locale = 'fr'
|
||||
Config.Locale = 'fr'
|
||||
|
||||
Config.Zones = {
|
||||
|
||||
ShopEntering = {
|
||||
Pos = {x = -33.777, y = -1102.021, z = 25.422},
|
||||
Size = {x = 1.5, y = 1.5, z = 1.0},
|
||||
Type = 1
|
||||
},
|
||||
ShopEntering = {
|
||||
Pos = { x = -33.777, y = -1102.021, z = 25.422 },
|
||||
Size = { x = 1.5, y = 1.5, z = 1.0 },
|
||||
Type = 1
|
||||
},
|
||||
|
||||
ShopInside = {
|
||||
Pos = {x = -47.570, y = -1097.221, z = 25.422},
|
||||
Size = {x = 1.5, y = 1.5, z = 1.0},
|
||||
Type = -1
|
||||
},
|
||||
ShopInside = {
|
||||
Pos = { x = -47.570, y = -1097.221, z = 25.422 },
|
||||
Size = { x = 1.5, y = 1.5, z = 1.0 },
|
||||
Type = -1
|
||||
},
|
||||
|
||||
ShopOutside = {
|
||||
Pos = {x = -28.637, y = -1085.691, z = 25.565},
|
||||
Size = {x = 1.5, y = 1.5, z = 1.0},
|
||||
Type = -1
|
||||
},
|
||||
ShopOutside = {
|
||||
Pos = { x = -28.637, y = -1085.691, z = 25.565 },
|
||||
Size = { x = 1.5, y = 1.5, z = 1.0 },
|
||||
Type = -1
|
||||
},
|
||||
|
||||
BossActions = {
|
||||
Pos = {x = -32.106, y = -1110.377, z = 25.422},
|
||||
Size = {x = 1.5, y = 1.5, z = 1.0},
|
||||
Type = -1
|
||||
},
|
||||
BossActions = {
|
||||
Pos = { x = -32.106, y = -1110.377, z = 25.422 },
|
||||
Size = { x = 1.5, y = 1.5, z = 1.0 },
|
||||
Type = -1
|
||||
},
|
||||
|
||||
GiveBackVehicle = {
|
||||
Pos = {x = -18.227, y = -1078.558, z = 25.675},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Type = (Config.EnablePlayerManagement and 1 or -1)
|
||||
},
|
||||
GiveBackVehicle = {
|
||||
Pos = { x = -18.227, y = -1078.558, z = 25.675 },
|
||||
Size = { x = 3.0, y = 3.0, z = 1.0 },
|
||||
Type = (Config.EnablePlayerManagement and 1 or -1)
|
||||
},
|
||||
|
||||
ResellVehicle = {
|
||||
Pos = {x = -44.630, y = -1080.738, z = 25.683},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Type = 1
|
||||
},
|
||||
ResellVehicle = {
|
||||
Pos = { x = -44.630, y = -1080.738, z = 25.683 },
|
||||
Size = { x = 3.0, y = 3.0, z = 1.0 },
|
||||
Type = 1
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+230
-230
@@ -27,16 +27,16 @@ CREATE TABLE `cardealer_vehicles` (
|
||||
);
|
||||
|
||||
CREATE TABLE `owned_vehicles` (
|
||||
|
||||
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`vehicle` longtext NOT NULL,
|
||||
`owner` varchar(60) NOT NULL,
|
||||
|
||||
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
||||
|
||||
CREATE TABLE `rented_vehicles` (
|
||||
|
||||
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`vehicle` varchar(60) NOT NULL,
|
||||
`plate` varchar(10) NOT NULL,
|
||||
@@ -44,31 +44,31 @@ CREATE TABLE `rented_vehicles` (
|
||||
`base_price` int(11) NOT NULL,
|
||||
`rent_price` int(11) NOT NULL,
|
||||
`owner` varchar(255) NOT NULL,
|
||||
|
||||
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
||||
|
||||
CREATE TABLE `vehicle_categories` (
|
||||
|
||||
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(60) NOT NULL,
|
||||
`label` varchar(60) NOT NULL,
|
||||
|
||||
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
||||
|
||||
INSERT INTO `vehicle_categories` (name, label) VALUES
|
||||
('compacts','Compacts'),
|
||||
('coupes','Coupés'),
|
||||
('sedans','Sedans'),
|
||||
('sports','Sports'),
|
||||
('sportsclassics','Sports Classics'),
|
||||
('super','Super'),
|
||||
('muscle','Muscle'),
|
||||
('offroad','Off Road'),
|
||||
('suvs','SUVs'),
|
||||
('vans','Vans'),
|
||||
('motorcycles','Motos')
|
||||
INSERT INTO `vehicle_categories` (name, label) VALUES
|
||||
('compacts','Compacts'),
|
||||
('coupes','Coupés'),
|
||||
('sedans','Sedans'),
|
||||
('sports','Sports'),
|
||||
('sportsclassics','Sports Classics'),
|
||||
('super','Super'),
|
||||
('muscle','Muscle'),
|
||||
('offroad','Off Road'),
|
||||
('suvs','SUVs'),
|
||||
('vans','Vans'),
|
||||
('motorcycles','Motos')
|
||||
;
|
||||
|
||||
CREATE TABLE `vehicles` (
|
||||
@@ -80,216 +80,216 @@ CREATE TABLE `vehicles` (
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
||||
|
||||
INSERT INTO `vehicles` (name, model, price, category) VALUES
|
||||
('Blade','blade',15000,'muscle'),
|
||||
('Buccaneer','buccaneer',18000,'muscle'),
|
||||
('Buccaneer Rider','buccaneer2',24000,'muscle'),
|
||||
('Chino','chino',15000,'muscle'),
|
||||
('Chino Luxe','chino2',19000,'muscle'),
|
||||
('Coquette BlackFin','coquette3',55000,'muscle'),
|
||||
('Dominator','dominator',35000,'muscle'),
|
||||
('Dukes','dukes',28000,'muscle'),
|
||||
('Gauntlet','gauntlet',30000,'muscle'),
|
||||
('Hotknife','hotknife',125000,'muscle'),
|
||||
('Faction','faction',20000,'muscle'),
|
||||
('Faction Rider','faction2',30000,'muscle'),
|
||||
('Faction XL','faction3',40000,'muscle'),
|
||||
('Nightshade','nightshade',65000,'muscle'),
|
||||
('Phoenix','phoenix',12500,'muscle'),
|
||||
('Picador','picador',18000,'muscle'),
|
||||
('Sabre Turbo','sabregt',20000,'muscle'),
|
||||
('Sabre GT','sabregt2',25000,'muscle'),
|
||||
('Slam Van','slamvan3',11500,'muscle'),
|
||||
('Tampa','tampa',16000,'muscle'),
|
||||
('Virgo','virgo',14000,'muscle'),
|
||||
('Vigero','vigero',12500,'muscle'),
|
||||
('Voodoo','voodoo',7200,'muscle'),
|
||||
('Blista','blista',8000,'compacts'),
|
||||
('Brioso R/A','brioso',18000,'compacts'),
|
||||
('Issi','issi2',10000,'compacts'),
|
||||
('Panto','panto',10000,'compacts'),
|
||||
('Prairie','prairie',12000,'compacts'),
|
||||
('Bison','bison',45000,'vans'),
|
||||
('Bobcat XL','bobcatxl',32000,'vans'),
|
||||
('Burrito','burrito3',19000,'vans'),
|
||||
('Burrito','gburrito2',29000,'vans'),
|
||||
('Camper','camper',42000,'vans'),
|
||||
('Gang Burrito','gburrito',45000,'vans'),
|
||||
('Journey','journey',6500,'vans'),
|
||||
('Minivan','minivan',13000,'vans'),
|
||||
('Moonbeam','moonbeam',18000,'vans'),
|
||||
('Moonbeam Rider','moonbeam2',35000,'vans'),
|
||||
('Paradise','paradise',19000,'vans'),
|
||||
('Rumpo','rumpo',15000,'vans'),
|
||||
('Rumpo Trail','rumpo3',19500,'vans'),
|
||||
('Surfer','surfer',12000,'vans'),
|
||||
('Youga','youga',10800,'vans'),
|
||||
('Youga Luxuary','youga2',14500,'vans'),
|
||||
('Asea','asea',5500,'sedans'),
|
||||
('Cognoscenti','cognoscenti',55000,'sedans'),
|
||||
('Emperor','emperor',8500,'sedans'),
|
||||
('Fugitive','fugitive',12000,'sedans'),
|
||||
('Glendale','glendale',6500,'sedans'),
|
||||
('Intruder','intruder',7500,'sedans'),
|
||||
('Premier','premier',8000,'sedans'),
|
||||
('Primo Custom','primo2',14000,'sedans'),
|
||||
('Regina','regina',5000,'sedans'),
|
||||
('Schafter','schafter2',25000,'sedans'),
|
||||
('Stretch','stretch',90000,'sedans'),
|
||||
('Super Diamond','superd',130000,'sedans'),
|
||||
('Tailgater','tailgater',30000,'sedans'),
|
||||
('Warrener','warrener',4000,'sedans'),
|
||||
('Washington','washington',9000,'sedans'),
|
||||
('Baller','baller2',40000,'suvs'),
|
||||
('Baller Sport','baller3',60000,'suvs'),
|
||||
('Cavalcade','cavalcade2',55000,'suvs'),
|
||||
('Contender','contender',70000,'suvs'),
|
||||
('Dubsta','dubsta',45000,'suvs'),
|
||||
('Dubsta Luxuary','dubsta2',60000,'suvs'),
|
||||
('Fhantom','fq2',17000,'suvs'),
|
||||
('Grabger','granger',50000,'suvs'),
|
||||
('Gresley','gresley',47500,'suvs'),
|
||||
('Huntley S','huntley',40000,'suvs'),
|
||||
('Landstalker','landstalker',35000,'suvs'),
|
||||
('Mesa','mesa',16000,'suvs'),
|
||||
('Mesa Trail','mesa3',40000,'suvs'),
|
||||
('Patriot','patriot',55000,'suvs'),
|
||||
('Radius','radi',29000,'suvs'),
|
||||
('Rocoto','rocoto',45000,'suvs'),
|
||||
('Seminole','seminole',25000,'suvs'),
|
||||
('XLS','xls',32000,'suvs'),
|
||||
('Btype','btype',62000,'sportsclassics'),
|
||||
('Btype Luxe','btype3',85000,'sportsclassics'),
|
||||
('Btype Hotroad','btype2',155000,'sportsclassics'),
|
||||
('Casco','casco',30000,'sportsclassics'),
|
||||
('Coquette Classic','coquette2',40000,'sportsclassics'),
|
||||
('Manana','manana',12800,'sportsclassics'),
|
||||
('Monroe','monroe',55000,'sportsclassics'),
|
||||
('Pigalle','pigalle',20000,'sportsclassics'),
|
||||
('Stinger','stinger',80000,'sportsclassics'),
|
||||
('Stinger GT','stingergt',75000,'sportsclassics'),
|
||||
('Stirling GT','feltzer3',65000,'sportsclassics'),
|
||||
('Z-Type','ztype',220000,'sportsclassics'),
|
||||
('Bifta','bifta',12000,'offroad'),
|
||||
('Bf Injection','bfinjection',16000,'offroad'),
|
||||
('Blazer','blazer',6500,'offroad'),
|
||||
('Blazer Sport','blazer4',8500,'offroad'),
|
||||
('Brawler','brawler',45000,'offroad'),
|
||||
('Bubsta 6x6','dubsta3',120000,'offroad'),
|
||||
('Dune Buggy','dune',8000,'offroad'),
|
||||
('Guardian','guardian',45000,'offroad'),
|
||||
('Rebel','rebel2',35000,'offroad'),
|
||||
('Sandking','sandking',55000,'offroad'),
|
||||
('The Liberator','monster',210000,'offroad'),
|
||||
('Trophy Truck','trophytruck',60000,'offroad'),
|
||||
('Trophy Truck Limited','trophytruck2',80000,'offroad'),
|
||||
('Cognoscenti Cabrio','cogcabrio',55000,'coupes'),
|
||||
('Exemplar','exemplar',32000,'coupes'),
|
||||
('F620','f620',40000,'coupes'),
|
||||
('Felon','felon',42000,'coupes'),
|
||||
('Felon GT','felon2',55000,'coupes'),
|
||||
('Jackal','jackal',38000,'coupes'),
|
||||
('Oracle XS','oracle2',35000,'coupes'),
|
||||
('Sentinel','sentinel',32000,'coupes'),
|
||||
('Sentinel XS','sentinel2',40000,'coupes'),
|
||||
('Windsor','windsor',95000,'coupes'),
|
||||
('Windsor Drop','windsor2',125000,'coupes'),
|
||||
('Zion','zion',36000,'coupes'),
|
||||
('Zion Cabrio','zion2',45000,'coupes'),
|
||||
('9F','ninef',65000,'sports'),
|
||||
('9F Cabrio','ninef2',80000,'sports'),
|
||||
('Alpha','alpha',60000,'sports'),
|
||||
('Banshee','banshee',70000,'sports'),
|
||||
('Bestia GTS','bestiagts',55000,'sports'),
|
||||
('Buffalo','buffalo',12000,'sports'),
|
||||
('Buffalo S','buffalo2',20000,'sports'),
|
||||
('Carbonizzare','carbonizzare',75000,'sports'),
|
||||
('Comet','comet2',65000,'sports'),
|
||||
('Coquette','coquette',65000,'sports'),
|
||||
('Drift Tampa','tampa2',80000,'sports'),
|
||||
('Elegy','elegy2',38500,'sports'),
|
||||
('Feltzer','feltzer2',55000,'sports'),
|
||||
('Furore GT','furoregt',45000,'sports'),
|
||||
('Fusilade','fusilade',40000,'sports'),
|
||||
('Jester','jester',65000,'sports'),
|
||||
('Jester(Racecar)','jester2',135000,'sports'),
|
||||
('Khamelion','khamelion',38000,'sports'),
|
||||
('Kuruma','kuruma',30000,'sports'),
|
||||
('Lynx','lynx',40000,'sports'),
|
||||
('Mamba','mamba',70000,'sports'),
|
||||
('Massacro','massacro',65000,'sports'),
|
||||
('Massacro(Racecar)','massacro2',130000,'sports'),
|
||||
('Omnis','omnis',35000,'sports'),
|
||||
('Penumbra','penumbra',28000,'sports'),
|
||||
('Rapid GT','rapidgt',35000,'sports'),
|
||||
('Rapid GT Convertible','rapidgt2',45000,'sports'),
|
||||
('Schafter V12','schafter3',50000,'sports'),
|
||||
('Seven 70','seven70',39500,'sports'),
|
||||
('Sultan','sultan',15000,'sports'),
|
||||
('Surano','surano',50000,'sports'),
|
||||
('Tropos','tropos',40000,'sports'),
|
||||
('Verlierer','verlierer2',70000,'sports'),
|
||||
('Adder','adder',900000,'super'),
|
||||
('Banshee 900R','banshee2',255000,'super'),
|
||||
('Bullet','bullet',90000,'super'),
|
||||
('Cheetah','cheetah',375000,'super'),
|
||||
('Entity XF','entityxf',425000,'super'),
|
||||
('ETR1','sheava',220000,'super'),
|
||||
('FMJ','fmj',185000,'super'),
|
||||
('Infernus','infernus',180000,'super'),
|
||||
('Osiris','osiris',160000,'super'),
|
||||
('Pfister','pfister811',85000,'super'),
|
||||
('RE-7B','le7b',325000,'super'),
|
||||
('Reaper','reaper',150000,'super'),
|
||||
('Sultan RS','sultanrs',65000,'super'),
|
||||
('T20','t20',300000,'super'),
|
||||
('Turismo R','turismor',350000,'super'),
|
||||
('Tyrus','tyrus',600000,'super'),
|
||||
('Vacca','vacca',120000,'super'),
|
||||
('Voltic','voltic',90000,'super'),
|
||||
('X80 Proto','prototipo',2500000,'super'),
|
||||
('Zentorno','zentorno',1500000,'super'),
|
||||
('Akuma','AKUMA',7500,'motorcycles'),
|
||||
('Avarus','avarus',18000,'motorcycles'),
|
||||
('Bagger','bagger',13500,'motorcycles'),
|
||||
('Bati 801','bati',12000,'motorcycles'),
|
||||
('Bati 801RR','bati2',19000,'motorcycles'),
|
||||
('BF400','bf400',6500,'motorcycles'),
|
||||
('BMX (velo)','bmx',160,'motorcycles'),
|
||||
('Carbon RS','carbonrs',18000,'motorcycles'),
|
||||
('Chimera','chimera',38000,'motorcycles'),
|
||||
('Cliffhanger','cliffhanger',9500,'motorcycles'),
|
||||
('Cruiser (velo)','cruiser',510,'motorcycles'),
|
||||
('Daemon','daemon',11500,'motorcycles'),
|
||||
('Daemon High','daemon2',13500,'motorcycles'),
|
||||
('Defiler','defiler',9800,'motorcycles'),
|
||||
('Double T','double',28000,'motorcycles'),
|
||||
('Enduro','enduro',5500,'motorcycles'),
|
||||
('Esskey','esskey',4200,'motorcycles'),
|
||||
('Faggio','faggio',1900,'motorcycles'),
|
||||
('Vespa','faggio2',2800,'motorcycles'),
|
||||
('Fixter (velo)','fixter',225,'motorcycles'),
|
||||
('Gargoyle','gargoyle',16500,'motorcycles'),
|
||||
('Hakuchou','hakuchou',31000,'motorcycles'),
|
||||
('Hakuchou Sport','hakuchou2',55000,'motorcycles'),
|
||||
('Hexer','hexer',12000,'motorcycles'),
|
||||
('Innovation','innovation',23500,'motorcycles'),
|
||||
('Manchez','manchez',5300,'motorcycles'),
|
||||
('Nemesis','nemesis',5800,'motorcycles'),
|
||||
('Nightblade','nightblade',35000,'motorcycles'),
|
||||
('PCJ-600','pcj',6200,'motorcycles'),
|
||||
('Ruffian','ruffian',6800,'motorcycles'),
|
||||
('Sanchez','sanchez',5300,'motorcycles'),
|
||||
('Sanchez Sport','sanchez2',5300,'motorcycles'),
|
||||
('Sanctus','sanctus',25000,'motorcycles'),
|
||||
('Scorcher (velo)','scorcher',280,'motorcycles'),
|
||||
('Sovereign','sovereign',22000,'motorcycles'),
|
||||
('Shotaro Concept','shotaro',320000,'motorcycles'),
|
||||
('Thrust','thrust',24000,'motorcycles'),
|
||||
('Tri bike (velo)','tribike3',520,'motorcycles'),
|
||||
('Vader','vader',7200,'motorcycles'),
|
||||
('Vortex','vortex',9800,'motorcycles'),
|
||||
('Woflsbane','wolfsbane',9000,'motorcycles'),
|
||||
('Zombie','zombiea',9500,'motorcycles'),
|
||||
('Zombie Luxuary','zombieb',12000,'motorcycles')
|
||||
INSERT INTO `vehicles` (name, model, price, category) VALUES
|
||||
('Blade','blade',15000,'muscle'),
|
||||
('Buccaneer','buccaneer',18000,'muscle'),
|
||||
('Buccaneer Rider','buccaneer2',24000,'muscle'),
|
||||
('Chino','chino',15000,'muscle'),
|
||||
('Chino Luxe','chino2',19000,'muscle'),
|
||||
('Coquette BlackFin','coquette3',55000,'muscle'),
|
||||
('Dominator','dominator',35000,'muscle'),
|
||||
('Dukes','dukes',28000,'muscle'),
|
||||
('Gauntlet','gauntlet',30000,'muscle'),
|
||||
('Hotknife','hotknife',125000,'muscle'),
|
||||
('Faction','faction',20000,'muscle'),
|
||||
('Faction Rider','faction2',30000,'muscle'),
|
||||
('Faction XL','faction3',40000,'muscle'),
|
||||
('Nightshade','nightshade',65000,'muscle'),
|
||||
('Phoenix','phoenix',12500,'muscle'),
|
||||
('Picador','picador',18000,'muscle'),
|
||||
('Sabre Turbo','sabregt',20000,'muscle'),
|
||||
('Sabre GT','sabregt2',25000,'muscle'),
|
||||
('Slam Van','slamvan3',11500,'muscle'),
|
||||
('Tampa','tampa',16000,'muscle'),
|
||||
('Virgo','virgo',14000,'muscle'),
|
||||
('Vigero','vigero',12500,'muscle'),
|
||||
('Voodoo','voodoo',7200,'muscle'),
|
||||
('Blista','blista',8000,'compacts'),
|
||||
('Brioso R/A','brioso',18000,'compacts'),
|
||||
('Issi','issi2',10000,'compacts'),
|
||||
('Panto','panto',10000,'compacts'),
|
||||
('Prairie','prairie',12000,'compacts'),
|
||||
('Bison','bison',45000,'vans'),
|
||||
('Bobcat XL','bobcatxl',32000,'vans'),
|
||||
('Burrito','burrito3',19000,'vans'),
|
||||
('Burrito','gburrito2',29000,'vans'),
|
||||
('Camper','camper',42000,'vans'),
|
||||
('Gang Burrito','gburrito',45000,'vans'),
|
||||
('Journey','journey',6500,'vans'),
|
||||
('Minivan','minivan',13000,'vans'),
|
||||
('Moonbeam','moonbeam',18000,'vans'),
|
||||
('Moonbeam Rider','moonbeam2',35000,'vans'),
|
||||
('Paradise','paradise',19000,'vans'),
|
||||
('Rumpo','rumpo',15000,'vans'),
|
||||
('Rumpo Trail','rumpo3',19500,'vans'),
|
||||
('Surfer','surfer',12000,'vans'),
|
||||
('Youga','youga',10800,'vans'),
|
||||
('Youga Luxuary','youga2',14500,'vans'),
|
||||
('Asea','asea',5500,'sedans'),
|
||||
('Cognoscenti','cognoscenti',55000,'sedans'),
|
||||
('Emperor','emperor',8500,'sedans'),
|
||||
('Fugitive','fugitive',12000,'sedans'),
|
||||
('Glendale','glendale',6500,'sedans'),
|
||||
('Intruder','intruder',7500,'sedans'),
|
||||
('Premier','premier',8000,'sedans'),
|
||||
('Primo Custom','primo2',14000,'sedans'),
|
||||
('Regina','regina',5000,'sedans'),
|
||||
('Schafter','schafter2',25000,'sedans'),
|
||||
('Stretch','stretch',90000,'sedans'),
|
||||
('Super Diamond','superd',130000,'sedans'),
|
||||
('Tailgater','tailgater',30000,'sedans'),
|
||||
('Warrener','warrener',4000,'sedans'),
|
||||
('Washington','washington',9000,'sedans'),
|
||||
('Baller','baller2',40000,'suvs'),
|
||||
('Baller Sport','baller3',60000,'suvs'),
|
||||
('Cavalcade','cavalcade2',55000,'suvs'),
|
||||
('Contender','contender',70000,'suvs'),
|
||||
('Dubsta','dubsta',45000,'suvs'),
|
||||
('Dubsta Luxuary','dubsta2',60000,'suvs'),
|
||||
('Fhantom','fq2',17000,'suvs'),
|
||||
('Grabger','granger',50000,'suvs'),
|
||||
('Gresley','gresley',47500,'suvs'),
|
||||
('Huntley S','huntley',40000,'suvs'),
|
||||
('Landstalker','landstalker',35000,'suvs'),
|
||||
('Mesa','mesa',16000,'suvs'),
|
||||
('Mesa Trail','mesa3',40000,'suvs'),
|
||||
('Patriot','patriot',55000,'suvs'),
|
||||
('Radius','radi',29000,'suvs'),
|
||||
('Rocoto','rocoto',45000,'suvs'),
|
||||
('Seminole','seminole',25000,'suvs'),
|
||||
('XLS','xls',32000,'suvs'),
|
||||
('Btype','btype',62000,'sportsclassics'),
|
||||
('Btype Luxe','btype3',85000,'sportsclassics'),
|
||||
('Btype Hotroad','btype2',155000,'sportsclassics'),
|
||||
('Casco','casco',30000,'sportsclassics'),
|
||||
('Coquette Classic','coquette2',40000,'sportsclassics'),
|
||||
('Manana','manana',12800,'sportsclassics'),
|
||||
('Monroe','monroe',55000,'sportsclassics'),
|
||||
('Pigalle','pigalle',20000,'sportsclassics'),
|
||||
('Stinger','stinger',80000,'sportsclassics'),
|
||||
('Stinger GT','stingergt',75000,'sportsclassics'),
|
||||
('Stirling GT','feltzer3',65000,'sportsclassics'),
|
||||
('Z-Type','ztype',220000,'sportsclassics'),
|
||||
('Bifta','bifta',12000,'offroad'),
|
||||
('Bf Injection','bfinjection',16000,'offroad'),
|
||||
('Blazer','blazer',6500,'offroad'),
|
||||
('Blazer Sport','blazer4',8500,'offroad'),
|
||||
('Brawler','brawler',45000,'offroad'),
|
||||
('Bubsta 6x6','dubsta3',120000,'offroad'),
|
||||
('Dune Buggy','dune',8000,'offroad'),
|
||||
('Guardian','guardian',45000,'offroad'),
|
||||
('Rebel','rebel2',35000,'offroad'),
|
||||
('Sandking','sandking',55000,'offroad'),
|
||||
('The Liberator','monster',210000,'offroad'),
|
||||
('Trophy Truck','trophytruck',60000,'offroad'),
|
||||
('Trophy Truck Limited','trophytruck2',80000,'offroad'),
|
||||
('Cognoscenti Cabrio','cogcabrio',55000,'coupes'),
|
||||
('Exemplar','exemplar',32000,'coupes'),
|
||||
('F620','f620',40000,'coupes'),
|
||||
('Felon','felon',42000,'coupes'),
|
||||
('Felon GT','felon2',55000,'coupes'),
|
||||
('Jackal','jackal',38000,'coupes'),
|
||||
('Oracle XS','oracle2',35000,'coupes'),
|
||||
('Sentinel','sentinel',32000,'coupes'),
|
||||
('Sentinel XS','sentinel2',40000,'coupes'),
|
||||
('Windsor','windsor',95000,'coupes'),
|
||||
('Windsor Drop','windsor2',125000,'coupes'),
|
||||
('Zion','zion',36000,'coupes'),
|
||||
('Zion Cabrio','zion2',45000,'coupes'),
|
||||
('9F','ninef',65000,'sports'),
|
||||
('9F Cabrio','ninef2',80000,'sports'),
|
||||
('Alpha','alpha',60000,'sports'),
|
||||
('Banshee','banshee',70000,'sports'),
|
||||
('Bestia GTS','bestiagts',55000,'sports'),
|
||||
('Buffalo','buffalo',12000,'sports'),
|
||||
('Buffalo S','buffalo2',20000,'sports'),
|
||||
('Carbonizzare','carbonizzare',75000,'sports'),
|
||||
('Comet','comet2',65000,'sports'),
|
||||
('Coquette','coquette',65000,'sports'),
|
||||
('Drift Tampa','tampa2',80000,'sports'),
|
||||
('Elegy','elegy2',38500,'sports'),
|
||||
('Feltzer','feltzer2',55000,'sports'),
|
||||
('Furore GT','furoregt',45000,'sports'),
|
||||
('Fusilade','fusilade',40000,'sports'),
|
||||
('Jester','jester',65000,'sports'),
|
||||
('Jester(Racecar)','jester2',135000,'sports'),
|
||||
('Khamelion','khamelion',38000,'sports'),
|
||||
('Kuruma','kuruma',30000,'sports'),
|
||||
('Lynx','lynx',40000,'sports'),
|
||||
('Mamba','mamba',70000,'sports'),
|
||||
('Massacro','massacro',65000,'sports'),
|
||||
('Massacro(Racecar)','massacro2',130000,'sports'),
|
||||
('Omnis','omnis',35000,'sports'),
|
||||
('Penumbra','penumbra',28000,'sports'),
|
||||
('Rapid GT','rapidgt',35000,'sports'),
|
||||
('Rapid GT Convertible','rapidgt2',45000,'sports'),
|
||||
('Schafter V12','schafter3',50000,'sports'),
|
||||
('Seven 70','seven70',39500,'sports'),
|
||||
('Sultan','sultan',15000,'sports'),
|
||||
('Surano','surano',50000,'sports'),
|
||||
('Tropos','tropos',40000,'sports'),
|
||||
('Verlierer','verlierer2',70000,'sports'),
|
||||
('Adder','adder',900000,'super'),
|
||||
('Banshee 900R','banshee2',255000,'super'),
|
||||
('Bullet','bullet',90000,'super'),
|
||||
('Cheetah','cheetah',375000,'super'),
|
||||
('Entity XF','entityxf',425000,'super'),
|
||||
('ETR1','sheava',220000,'super'),
|
||||
('FMJ','fmj',185000,'super'),
|
||||
('Infernus','infernus',180000,'super'),
|
||||
('Osiris','osiris',160000,'super'),
|
||||
('Pfister','pfister811',85000,'super'),
|
||||
('RE-7B','le7b',325000,'super'),
|
||||
('Reaper','reaper',150000,'super'),
|
||||
('Sultan RS','sultanrs',65000,'super'),
|
||||
('T20','t20',300000,'super'),
|
||||
('Turismo R','turismor',350000,'super'),
|
||||
('Tyrus','tyrus',600000,'super'),
|
||||
('Vacca','vacca',120000,'super'),
|
||||
('Voltic','voltic',90000,'super'),
|
||||
('X80 Proto','prototipo',2500000,'super'),
|
||||
('Zentorno','zentorno',1500000,'super'),
|
||||
('Akuma','AKUMA',7500,'motorcycles'),
|
||||
('Avarus','avarus',18000,'motorcycles'),
|
||||
('Bagger','bagger',13500,'motorcycles'),
|
||||
('Bati 801','bati',12000,'motorcycles'),
|
||||
('Bati 801RR','bati2',19000,'motorcycles'),
|
||||
('BF400','bf400',6500,'motorcycles'),
|
||||
('BMX (velo)','bmx',160,'motorcycles'),
|
||||
('Carbon RS','carbonrs',18000,'motorcycles'),
|
||||
('Chimera','chimera',38000,'motorcycles'),
|
||||
('Cliffhanger','cliffhanger',9500,'motorcycles'),
|
||||
('Cruiser (velo)','cruiser',510,'motorcycles'),
|
||||
('Daemon','daemon',11500,'motorcycles'),
|
||||
('Daemon High','daemon2',13500,'motorcycles'),
|
||||
('Defiler','defiler',9800,'motorcycles'),
|
||||
('Double T','double',28000,'motorcycles'),
|
||||
('Enduro','enduro',5500,'motorcycles'),
|
||||
('Esskey','esskey',4200,'motorcycles'),
|
||||
('Faggio','faggio',1900,'motorcycles'),
|
||||
('Vespa','faggio2',2800,'motorcycles'),
|
||||
('Fixter (velo)','fixter',225,'motorcycles'),
|
||||
('Gargoyle','gargoyle',16500,'motorcycles'),
|
||||
('Hakuchou','hakuchou',31000,'motorcycles'),
|
||||
('Hakuchou Sport','hakuchou2',55000,'motorcycles'),
|
||||
('Hexer','hexer',12000,'motorcycles'),
|
||||
('Innovation','innovation',23500,'motorcycles'),
|
||||
('Manchez','manchez',5300,'motorcycles'),
|
||||
('Nemesis','nemesis',5800,'motorcycles'),
|
||||
('Nightblade','nightblade',35000,'motorcycles'),
|
||||
('PCJ-600','pcj',6200,'motorcycles'),
|
||||
('Ruffian','ruffian',6800,'motorcycles'),
|
||||
('Sanchez','sanchez',5300,'motorcycles'),
|
||||
('Sanchez Sport','sanchez2',5300,'motorcycles'),
|
||||
('Sanctus','sanctus',25000,'motorcycles'),
|
||||
('Scorcher (velo)','scorcher',280,'motorcycles'),
|
||||
('Sovereign','sovereign',22000,'motorcycles'),
|
||||
('Shotaro Concept','shotaro',320000,'motorcycles'),
|
||||
('Thrust','thrust',24000,'motorcycles'),
|
||||
('Tri bike (velo)','tribike3',520,'motorcycles'),
|
||||
('Vader','vader',7200,'motorcycles'),
|
||||
('Vortex','vortex',9800,'motorcycles'),
|
||||
('Woflsbane','wolfsbane',9000,'motorcycles'),
|
||||
('Zombie','zombiea',9500,'motorcycles'),
|
||||
('Zombie Luxuary','zombieb',12000,'motorcycles')
|
||||
;
|
||||
|
||||
+58
-58
@@ -1,60 +1,60 @@
|
||||
Locales['br'] = {
|
||||
--Global menus
|
||||
['belongs'] = ' agora pertence a você',
|
||||
['bleach amount'] = 'amount to bleach',
|
||||
['broke_company'] = 'você não tem dinheiro suficiente na conta da empresa',
|
||||
['buy'] = 'Comprar ',
|
||||
['buy_vehicle'] = 'comprar veículo',
|
||||
['car_dealer'] = 'Concessionária de carros',
|
||||
['create_bill'] = 'criar recibo',
|
||||
['dealer_boss'] = 'Concessionária de carros - Chefe',
|
||||
['delivered'] = 'veículo ~g~entregue~s~ para o revendedor',
|
||||
['depop_vehicle'] = 'volte ao veiculo',
|
||||
['deposit_amount'] = 'valor do depósito',
|
||||
['deposit_money'] = 'depositar dinheiro',
|
||||
['experianced'] = 'com experiência',
|
||||
['for'] = ' por $',
|
||||
['get_rented_vehicles'] = 'veículos para alugar',
|
||||
['invalid_amount'] = 'Montante inválido',
|
||||
['invoice_amount'] = 'valor da fatura',
|
||||
['remove_pv'] = 'remover um veículo pessoal',
|
||||
['no'] = 'Não',
|
||||
['no_players'] = 'sem jogadores nas proximidades',
|
||||
['not_enough_money'] = 'você não tem dinheiro suficiente',
|
||||
['not_rental'] = 'isso não é um ~r~veículo de aluguel~s~',
|
||||
['not_yours'] = 'este veículo não pertence a você',
|
||||
['paid_rental'] = 'Você tem ~g~pago~s~ para o seu aluguel de veiculos : ~g~$',
|
||||
['personal_vehicle'] = 'veículo pessoal',
|
||||
['pop_vehicle'] = 'sai do veiculo',
|
||||
['price'] = ' pela quantidade de $',
|
||||
['recruit'] = 'Recrutar',
|
||||
['rent_vehicle'] = 'Concessionária - Veículos para alugar',
|
||||
['rental_amount'] = 'montante do aluguel',
|
||||
['sell_menu'] = 'Pressione ~INPUT_CONTEXT~ para vender ',
|
||||
['set_vehicle_owner_rent'] = 'Atribuir veículo [Alugar]',
|
||||
['set_vehicle_owner_sell'] = 'Veículos para [Venda]',
|
||||
['shop_menu'] = 'Pressione ~INPUT_CONTEXT~ para acessar o menu',
|
||||
['the_boss'] = 'Chefe',
|
||||
['vehicle'] = 'veículo ',
|
||||
['vehicle_dealer'] = 'Veículo - Concessionária',
|
||||
['vehicle_menu'] = 'Pressione ~INPUT_CONTEXT~ para fazer o seu veículo',
|
||||
['vehicle_purchased'] = 'você comprou um veículo',
|
||||
['vehicle_set_owned'] = 'Veículo ~y~%s~s~ foi atribuído a ~b~%s~s~',
|
||||
['vehicle_set_rented'] = 'Veículo ~y~%s~s~ foi alugado para ~b~%s~s~',
|
||||
['vehicle_sold'] = 'Veículo ~g~vendido~s~',
|
||||
['vehicle_sold_to'] = 'Veículo ~y~%s~s~ vendido to ~b~%s~s~',
|
||||
['wash_money'] = 'lavagem de dinheiro',
|
||||
['withdraw_amount'] = 'quantidade de retirada',
|
||||
['withdraw_money'] = 'remover dinheiro da empresa',
|
||||
['yes'] = 'Sim',
|
||||
['deposit_stock'] = 'Colocar no estoque',
|
||||
['take_stock'] = 'Retirar do estoque',
|
||||
['dealership_stock'] = 'estoque da concessionária',
|
||||
['amount'] = 'montante',
|
||||
['quantity_invalid'] = 'quantidade inválida',
|
||||
['inventoty'] = 'Inventário',
|
||||
['dealership'] = 'Concessionária',
|
||||
['dealer_customers'] = 'clientes revendedores',
|
||||
['have_withdrawn'] = 'você se retirou ',
|
||||
['added'] = 'você adicionou ',
|
||||
--Global menus
|
||||
['belongs'] = ' agora pertence a você',
|
||||
['bleach amount'] = 'amount to bleach',
|
||||
['broke_company'] = 'você não tem dinheiro suficiente na conta da empresa',
|
||||
['buy'] = 'Comprar ',
|
||||
['buy_vehicle'] = 'comprar veículo',
|
||||
['car_dealer'] = 'Concessionária de carros',
|
||||
['create_bill'] = 'criar recibo',
|
||||
['dealer_boss'] = 'Concessionária de carros - Chefe',
|
||||
['delivered'] = 'veículo ~g~entregue~s~ para o revendedor',
|
||||
['depop_vehicle'] = 'volte ao veiculo',
|
||||
['deposit_amount'] = 'valor do depósito',
|
||||
['deposit_money'] = 'depositar dinheiro',
|
||||
['experianced'] = 'com experiência',
|
||||
['for'] = ' por $',
|
||||
['get_rented_vehicles'] = 'veículos para alugar',
|
||||
['invalid_amount'] = 'Montante inválido',
|
||||
['invoice_amount'] = 'valor da fatura',
|
||||
['remove_pv'] = 'remover um veículo pessoal',
|
||||
['no'] = 'Não',
|
||||
['no_players'] = 'sem jogadores nas proximidades',
|
||||
['not_enough_money'] = 'você não tem dinheiro suficiente',
|
||||
['not_rental'] = 'isso não é um ~r~veículo de aluguel~s~',
|
||||
['not_yours'] = 'este veículo não pertence a você',
|
||||
['paid_rental'] = 'Você tem ~g~pago~s~ para o seu aluguel de veiculos : ~g~$',
|
||||
['personal_vehicle'] = 'veículo pessoal',
|
||||
['pop_vehicle'] = 'sai do veiculo',
|
||||
['price'] = ' pela quantidade de $',
|
||||
['recruit'] = 'Recrutar',
|
||||
['rent_vehicle'] = 'Concessionária - Veículos para alugar',
|
||||
['rental_amount'] = 'montante do aluguel',
|
||||
['sell_menu'] = 'Pressione ~INPUT_CONTEXT~ para vender ',
|
||||
['set_vehicle_owner_rent'] = 'Atribuir veículo [Alugar]',
|
||||
['set_vehicle_owner_sell'] = 'Veículos para [Venda]',
|
||||
['shop_menu'] = 'Pressione ~INPUT_CONTEXT~ para acessar o menu',
|
||||
['the_boss'] = 'Chefe',
|
||||
['vehicle'] = 'veículo ',
|
||||
['vehicle_dealer'] = 'Veículo - Concessionária',
|
||||
['vehicle_menu'] = 'Pressione ~INPUT_CONTEXT~ para fazer o seu veículo',
|
||||
['vehicle_purchased'] = 'você comprou um veículo',
|
||||
['vehicle_set_owned'] = 'Veículo ~y~%s~s~ foi atribuído a ~b~%s~s~',
|
||||
['vehicle_set_rented'] = 'Veículo ~y~%s~s~ foi alugado para ~b~%s~s~',
|
||||
['vehicle_sold'] = 'Veículo ~g~vendido~s~',
|
||||
['vehicle_sold_to'] = 'Veículo ~y~%s~s~ vendido to ~b~%s~s~',
|
||||
['wash_money'] = 'lavagem de dinheiro',
|
||||
['withdraw_amount'] = 'quantidade de retirada',
|
||||
['withdraw_money'] = 'remover dinheiro da empresa',
|
||||
['yes'] = 'Sim',
|
||||
['deposit_stock'] = 'Colocar no estoque',
|
||||
['take_stock'] = 'Retirar do estoque',
|
||||
['dealership_stock'] = 'estoque da concessionária',
|
||||
['amount'] = 'montante',
|
||||
['quantity_invalid'] = 'quantidade inválida',
|
||||
['inventoty'] = 'Inventário',
|
||||
['dealership'] = 'Concessionária',
|
||||
['dealer_customers'] = 'clientes revendedores',
|
||||
['have_withdrawn'] = 'você se retirou ',
|
||||
['added'] = 'você adicionou ',
|
||||
}
|
||||
|
||||
+49
-49
@@ -1,51 +1,51 @@
|
||||
Locales['de'] = {
|
||||
--Global menus
|
||||
['belongs'] = ' gehört jetzt dir',
|
||||
['bleach amount'] = 'Betrag zum waschen',
|
||||
['broke_company'] = 'du hast nicht genug Geld auf dem Firmenkonto',
|
||||
['buy'] = 'kaufen',
|
||||
['buy_vehicle'] = 'Fahrzeug kaufen',
|
||||
['car_dealer'] = 'Autohändler',
|
||||
['create_bill'] = 'Rechnung erstellen',
|
||||
['dealer_boss'] = 'Autohändler - Boss',
|
||||
['delivered'] = 'Fahrzeug zum Händler ~g~gebracht~s~',
|
||||
['depop_vehicle'] = 'Fahrzeug zurückholen',
|
||||
['deposit_amount'] = 'Einzahlbetrag',
|
||||
['deposit_money'] = 'Geld einzahlen',
|
||||
['experianced'] = 'erfahren',
|
||||
['for'] = 'für $',
|
||||
['get_rented_vehicles'] = 'Mietwagen',
|
||||
['invalid_amount'] = 'ungültiger Betrag',
|
||||
['invoice_amount'] = 'Rechnungsbetrag',
|
||||
['leaving'] = 'verlasse persönnliches Fahrzeug',
|
||||
['no'] = 'nein',
|
||||
['no_players'] = 'keine Spieler in der Nähe',
|
||||
['not_enough_money'] = 'du hast nicht genug Geld',
|
||||
['not_rental'] = 'dies ist kein ~r~Mietwagen~s~',
|
||||
['not_yours'] = 'dieses Fahrzeug gehört dir nicht',
|
||||
['paid_rental'] = 'du ~g~bezahlst~s~ für den Mietwagen : ~g~$',
|
||||
['personal_vehicle'] = 'Persönliches Fahrzeug',
|
||||
['pop_vehicle'] = 'Fahrzeug holen',
|
||||
['price'] = ' für den Betrag $',
|
||||
['recruit'] = 'Neuling',
|
||||
['rent_vehicle'] = 'Autohändler - Fahrzeuge zum vermieten',
|
||||
['rental_amount'] = 'Mietbetrag',
|
||||
['sell_menu'] = 'Drücke ~INPUT_CONTEXT~ zum verkaufen ',
|
||||
['set_vehicle_owner_rent'] = 'Fahrzeug zuweisen [Mieten]',
|
||||
['set_vehicle_owner_sell'] = 'Fahrzeuge [Verkauf]',
|
||||
['set_vehicle_owner_sell_society'] = 'Fahrzeuge [Verkauf] [Society]',
|
||||
['shop_menu'] = 'Drücke ~INPUT_CONTEXT~ um das Menü zu öffnen',
|
||||
['the_boss'] = 'boss',
|
||||
['vehicle'] = 'Fahrzeug ',
|
||||
['vehicle_dealer'] = 'Autohändler',
|
||||
['vehicle_menu'] = 'Drücke ~INPUT_CONTEXT~ um ein Fahrzeug zu übergeben',
|
||||
['vehicle_purchased'] = 'du hast ein Fahrzeug gekauft',
|
||||
['vehicle_set_owned'] = 'Vehicle ~y~%s~s~ has been assigned to ~b~%s~s~',
|
||||
['vehicle_set_rented'] = 'Vehicle ~y~%s~s~ has been rented to ~b~%s~s~',
|
||||
['vehicle_sold'] = 'Fahrzeug ~g~verkauft~s~',
|
||||
['vehicle_sold_to'] = 'Vehicle ~y~%s~s~ sold to ~b~%s~s~',
|
||||
['wash_money'] = 'Geld waschen',
|
||||
['withdraw_amount'] = 'Abhebebetrag',
|
||||
['withdraw_money'] = 'Firmengeld abheben',
|
||||
['yes'] = 'ja',
|
||||
--Global menus
|
||||
['belongs'] = ' gehört jetzt dir',
|
||||
['bleach amount'] = 'Betrag zum waschen',
|
||||
['broke_company'] = 'du hast nicht genug Geld auf dem Firmenkonto',
|
||||
['buy'] = 'kaufen',
|
||||
['buy_vehicle'] = 'Fahrzeug kaufen',
|
||||
['car_dealer'] = 'Autohändler',
|
||||
['create_bill'] = 'Rechnung erstellen',
|
||||
['dealer_boss'] = 'Autohändler - Boss',
|
||||
['delivered'] = 'Fahrzeug zum Händler ~g~gebracht~s~',
|
||||
['depop_vehicle'] = 'Fahrzeug zurückholen',
|
||||
['deposit_amount'] = 'Einzahlbetrag',
|
||||
['deposit_money'] = 'Geld einzahlen',
|
||||
['experianced'] = 'erfahren',
|
||||
['for'] = 'für $',
|
||||
['get_rented_vehicles'] = 'Mietwagen',
|
||||
['invalid_amount'] = 'ungültiger Betrag',
|
||||
['invoice_amount'] = 'Rechnungsbetrag',
|
||||
['leaving'] = 'verlasse persönnliches Fahrzeug',
|
||||
['no'] = 'nein',
|
||||
['no_players'] = 'keine Spieler in der Nähe',
|
||||
['not_enough_money'] = 'du hast nicht genug Geld',
|
||||
['not_rental'] = 'dies ist kein ~r~Mietwagen~s~',
|
||||
['not_yours'] = 'dieses Fahrzeug gehört dir nicht',
|
||||
['paid_rental'] = 'du ~g~bezahlst~s~ für den Mietwagen : ~g~$',
|
||||
['personal_vehicle'] = 'Persönliches Fahrzeug',
|
||||
['pop_vehicle'] = 'Fahrzeug holen',
|
||||
['price'] = ' für den Betrag $',
|
||||
['recruit'] = 'Neuling',
|
||||
['rent_vehicle'] = 'Autohändler - Fahrzeuge zum vermieten',
|
||||
['rental_amount'] = 'Mietbetrag',
|
||||
['sell_menu'] = 'Drücke ~INPUT_CONTEXT~ zum verkaufen ',
|
||||
['set_vehicle_owner_rent'] = 'Fahrzeug zuweisen [Mieten]',
|
||||
['set_vehicle_owner_sell'] = 'Fahrzeuge [Verkauf]',
|
||||
['set_vehicle_owner_sell_society'] = 'Fahrzeuge [Verkauf] [Society]',
|
||||
['shop_menu'] = 'Drücke ~INPUT_CONTEXT~ um das Menü zu öffnen',
|
||||
['the_boss'] = 'boss',
|
||||
['vehicle'] = 'Fahrzeug ',
|
||||
['vehicle_dealer'] = 'Autohändler',
|
||||
['vehicle_menu'] = 'Drücke ~INPUT_CONTEXT~ um ein Fahrzeug zu übergeben',
|
||||
['vehicle_purchased'] = 'du hast ein Fahrzeug gekauft',
|
||||
['vehicle_set_owned'] = 'Vehicle ~y~%s~s~ has been assigned to ~b~%s~s~',
|
||||
['vehicle_set_rented'] = 'Vehicle ~y~%s~s~ has been rented to ~b~%s~s~',
|
||||
['vehicle_sold'] = 'Fahrzeug ~g~verkauft~s~',
|
||||
['vehicle_sold_to'] = 'Vehicle ~y~%s~s~ sold to ~b~%s~s~',
|
||||
['wash_money'] = 'Geld waschen',
|
||||
['withdraw_amount'] = 'Abhebebetrag',
|
||||
['withdraw_money'] = 'Firmengeld abheben',
|
||||
['yes'] = 'ja',
|
||||
}
|
||||
|
||||
+58
-58
@@ -1,60 +1,60 @@
|
||||
Locales['en'] = {
|
||||
--Global menus
|
||||
['belongs'] = ' now belongs to you',
|
||||
['bleach amount'] = 'amount to bleach',
|
||||
['broke_company'] = 'you do not have enough money in the company account',
|
||||
['buy'] = 'buy',
|
||||
['buy_vehicle'] = 'buy vehicle',
|
||||
['car_dealer'] = 'car Dealership',
|
||||
['create_bill'] = 'create invoice',
|
||||
['dealer_boss'] = 'car Dealer - Boss',
|
||||
['delivered'] = 'vehicle ~g~delivered~s~ to the dealer',
|
||||
['depop_vehicle'] = 'return vehicle',
|
||||
['deposit_amount'] = 'deposit amount',
|
||||
['deposit_money'] = 'deposit money',
|
||||
['experianced'] = 'experianced',
|
||||
['for'] = 'for $',
|
||||
['get_rented_vehicles'] = 'vehicles for rent',
|
||||
['invalid_amount'] = 'invalid amount',
|
||||
['invoice_amount'] = 'invoice amount',
|
||||
['leaving'] = 'leaving a personal vehicle',
|
||||
['no'] = 'no',
|
||||
['no_players'] = 'no players nearby',
|
||||
['not_enough_money'] = 'you do not have enough money',
|
||||
['not_rental'] = 'this is not a ~r~rental vehicle~s~',
|
||||
['not_yours'] = 'this vehicle does not belong to you',
|
||||
['paid_rental'] = 'you have ~g~payed~s~ for your vehicle rental : ~g~$',
|
||||
['personal_vehicle'] = 'personal vehicle',
|
||||
['pop_vehicle'] = 'exit vehicle',
|
||||
['price'] = ' for the amount of $',
|
||||
['recruit'] = 'recruit',
|
||||
['rent_vehicle'] = 'car Dealer - Vehicles for rent',
|
||||
['rental_amount'] = 'rental amount',
|
||||
['sell_menu'] = 'press ~INPUT_CONTEXT~ to sell ',
|
||||
['set_vehicle_owner_rent'] = 'assign vehicle [Location]',
|
||||
['set_vehicle_owner_sell'] = 'vehicles for [sale]',
|
||||
['shop_menu'] = 'press ~INPUT_CONTEXT~ to access the menu',
|
||||
['the_boss'] = 'boss',
|
||||
['vehicle'] = 'vehicle ',
|
||||
['vehicle_dealer'] = 'vehicle - Car Dealer',
|
||||
['vehicle_menu'] = 'press ~INPUT_CONTEXT~ to make your vehicle',
|
||||
['vehicle_purchased'] = 'you bought a vehicle',
|
||||
['vehicle_set_owned'] = 'Vehicle ~y~%s~s~ has been assigned to ~b~%s~s~',
|
||||
['vehicle_set_rented'] = 'Vehicle ~y~%s~s~ has been rented to ~b~%s~s~',
|
||||
['vehicle_sold'] = 'vehicle ~g~sold~s~',
|
||||
['vehicle_sold_to'] = 'Vehicle ~y~%s~s~ sold to ~b~%s~s~',
|
||||
['wash_money'] = 'money laundering',
|
||||
['withdraw_amount'] = 'amount of withdrawal',
|
||||
['withdraw_money'] = 'remove company money',
|
||||
['yes'] = 'yes',
|
||||
['deposit_stock'] = 'deposit Stock',
|
||||
['take_stock'] = 'take Stock',
|
||||
['dealership_stock'] = 'dealership Stock',
|
||||
['amount'] = 'amount',
|
||||
['quantity_invalid'] = 'invalid Quantity',
|
||||
['inventoty'] = 'inventory',
|
||||
['dealership'] = 'car Dealer',
|
||||
['dealer_customers'] = 'dealer customers',
|
||||
['have_withdrawn'] = 'you have withdrawn ',
|
||||
['added'] = 'you added ',
|
||||
--Global menus
|
||||
['belongs'] = ' now belongs to you',
|
||||
['bleach amount'] = 'amount to bleach',
|
||||
['broke_company'] = 'you do not have enough money in the company account',
|
||||
['buy'] = 'buy',
|
||||
['buy_vehicle'] = 'buy vehicle',
|
||||
['car_dealer'] = 'car Dealership',
|
||||
['create_bill'] = 'create invoice',
|
||||
['dealer_boss'] = 'car Dealer - Boss',
|
||||
['delivered'] = 'vehicle ~g~delivered~s~ to the dealer',
|
||||
['depop_vehicle'] = 'return vehicle',
|
||||
['deposit_amount'] = 'deposit amount',
|
||||
['deposit_money'] = 'deposit money',
|
||||
['experianced'] = 'experianced',
|
||||
['for'] = 'for $',
|
||||
['get_rented_vehicles'] = 'vehicles for rent',
|
||||
['invalid_amount'] = 'invalid amount',
|
||||
['invoice_amount'] = 'invoice amount',
|
||||
['leaving'] = 'leaving a personal vehicle',
|
||||
['no'] = 'no',
|
||||
['no_players'] = 'no players nearby',
|
||||
['not_enough_money'] = 'you do not have enough money',
|
||||
['not_rental'] = 'this is not a ~r~rental vehicle~s~',
|
||||
['not_yours'] = 'this vehicle does not belong to you',
|
||||
['paid_rental'] = 'you have ~g~payed~s~ for your vehicle rental : ~g~$',
|
||||
['personal_vehicle'] = 'personal vehicle',
|
||||
['pop_vehicle'] = 'exit vehicle',
|
||||
['price'] = ' for the amount of $',
|
||||
['recruit'] = 'recruit',
|
||||
['rent_vehicle'] = 'car Dealer - Vehicles for rent',
|
||||
['rental_amount'] = 'rental amount',
|
||||
['sell_menu'] = 'press ~INPUT_CONTEXT~ to sell ',
|
||||
['set_vehicle_owner_rent'] = 'assign vehicle [Location]',
|
||||
['set_vehicle_owner_sell'] = 'vehicles for [sale]',
|
||||
['shop_menu'] = 'press ~INPUT_CONTEXT~ to access the menu',
|
||||
['the_boss'] = 'boss',
|
||||
['vehicle'] = 'vehicle ',
|
||||
['vehicle_dealer'] = 'vehicle - Car Dealer',
|
||||
['vehicle_menu'] = 'press ~INPUT_CONTEXT~ to make your vehicle',
|
||||
['vehicle_purchased'] = 'you bought a vehicle',
|
||||
['vehicle_set_owned'] = 'Vehicle ~y~%s~s~ has been assigned to ~b~%s~s~',
|
||||
['vehicle_set_rented'] = 'Vehicle ~y~%s~s~ has been rented to ~b~%s~s~',
|
||||
['vehicle_sold'] = 'vehicle ~g~sold~s~',
|
||||
['vehicle_sold_to'] = 'Vehicle ~y~%s~s~ sold to ~b~%s~s~',
|
||||
['wash_money'] = 'money laundering',
|
||||
['withdraw_amount'] = 'amount of withdrawal',
|
||||
['withdraw_money'] = 'remove company money',
|
||||
['yes'] = 'yes',
|
||||
['deposit_stock'] = 'deposit Stock',
|
||||
['take_stock'] = 'take Stock',
|
||||
['dealership_stock'] = 'dealership Stock',
|
||||
['amount'] = 'amount',
|
||||
['quantity_invalid'] = 'invalid Quantity',
|
||||
['inventoty'] = 'inventory',
|
||||
['dealership'] = 'car Dealer',
|
||||
['dealer_customers'] = 'dealer customers',
|
||||
['have_withdrawn'] = 'you have withdrawn ',
|
||||
['added'] = 'you added ',
|
||||
}
|
||||
|
||||
+59
-59
@@ -1,61 +1,61 @@
|
||||
Locales['fr'] = {
|
||||
--Global menus
|
||||
['belongs'] = 'Vous appartient désormais',
|
||||
['bleach amount'] = 'Montant à blanchir',
|
||||
['broke_company'] = 'Vous n\'avez pas assez d\'argent sur votre compte société',
|
||||
['buy'] = 'Acheter',
|
||||
['buy_vehicle'] = 'Acheter véhicule',
|
||||
['car_dealer'] = 'Concessionnaire',
|
||||
['create_bill'] = 'Créer facture',
|
||||
['dealer_boss'] = 'Concessionnaire - Patron',
|
||||
['delivered'] = 'Véhicule ~g~rendu~s~ au concessionnaire',
|
||||
['depop_vehicle'] = 'Rentrer véhicule',
|
||||
['deposit_amount'] = 'Montant du dépôt',
|
||||
['deposit_money'] = 'Déposer argent',
|
||||
['experianced'] = 'Experimente',
|
||||
['for'] = 'pour $',
|
||||
['get_rented_vehicles'] = 'Véhicules en location',
|
||||
['invalid_amount'] = 'Montant invalide',
|
||||
['invoice_amount'] = 'Montant de la facture',
|
||||
['leaving'] = 'Sortir un véhicule personnel',
|
||||
['no'] = 'Non',
|
||||
['no_players'] = 'Aucun joueur à proximité',
|
||||
['not_enough_money'] = 'Vous n\'avez pas assez d\'argent',
|
||||
['not_rental'] = 'Ce n\'est pas un ~r~véhicule de location~s~',
|
||||
['not_yours'] = 'Ce véhicule ne vous appartient pas',
|
||||
['paid_rental'] = 'Vous avez ~g~payé~s~ votre location de véhicule : ~g~$',
|
||||
['personal_vehicle'] = 'Véhicule personnel',
|
||||
['pop_vehicle'] = 'Sortir véhicule',
|
||||
['price'] = 'au prix de $',
|
||||
['recruit'] = 'Recrue',
|
||||
['rent_vehicle'] = 'Concessionnaire - Véhicules en location',
|
||||
['rental_amount'] = 'Montant de la location',
|
||||
['sell_menu'] = 'Appuez sur ~INPUT_CONTEXT~ pour vendre',
|
||||
['set_vehicle_owner_rent'] = 'Attribuer véhicule [Location]',
|
||||
['set_vehicle_owner_sell'] = 'Attribuer véhicule [Vente]',
|
||||
['set_vehicle_owner_sell_society'] = 'Attribuer véhicule [Vente] [Société]',
|
||||
['shop_menu'] = 'Appuez sur ~INPUT_CONTEXT~ pour accéder au menu',
|
||||
['the_boss'] = 'Patron',
|
||||
['vehicle'] = 'Le véhicule',
|
||||
['vehicle_dealer'] = 'Concessionnaire - Véhicules',
|
||||
['vehicle_menu'] = 'Appuez sur ~INPUT_CONTEXT~ pour rendre votre véhicule',
|
||||
['vehicle_purchased'] = 'Vous avez acheté un véhicule',
|
||||
['vehicle_set_owned'] = 'Le véhicule ~y~%s~s~ a été attribué à ~b~%s~s~',
|
||||
['vehicle_set_rented'] = 'Le véhicule ~y~%s~s~ a été loué à ~b~%s~s~',
|
||||
['vehicle_sold'] = 'Véhicule ~g~vendu~s~',
|
||||
['vehicle_sold_to'] = 'Véhicule ~y~%s~s~ vendu à ~b~%s~s~',
|
||||
['wash_money'] = 'Blanchir argent',
|
||||
['withdraw_amount'] = 'Montant du retrait',
|
||||
['withdraw_money'] = 'Retirer argent société',
|
||||
['yes'] = 'Oui',
|
||||
['deposit_stock'] = 'déposer Stock',
|
||||
['take_stock'] = 'prendre Stock',
|
||||
['dealership_stock'] = 'concession Stock',
|
||||
['amount'] = 'quantité',
|
||||
['quantity_invalid'] = 'quantité invalide',
|
||||
['inventory'] = 'inventaire',
|
||||
['dealership'] = 'concession',
|
||||
['dealer_customers'] = 'client concession',
|
||||
['have_withdrawn'] = 'Vous avez retiré ',
|
||||
['added'] = 'vous avez ajouté ',
|
||||
--Global menus
|
||||
['belongs'] = 'Vous appartient désormais',
|
||||
['bleach amount'] = 'Montant à blanchir',
|
||||
['broke_company'] = 'Vous n\'avez pas assez d\'argent sur votre compte société',
|
||||
['buy'] = 'Acheter',
|
||||
['buy_vehicle'] = 'Acheter véhicule',
|
||||
['car_dealer'] = 'Concessionnaire',
|
||||
['create_bill'] = 'Créer facture',
|
||||
['dealer_boss'] = 'Concessionnaire - Patron',
|
||||
['delivered'] = 'Véhicule ~g~rendu~s~ au concessionnaire',
|
||||
['depop_vehicle'] = 'Rentrer véhicule',
|
||||
['deposit_amount'] = 'Montant du dépôt',
|
||||
['deposit_money'] = 'Déposer argent',
|
||||
['experianced'] = 'Experimente',
|
||||
['for'] = 'pour $',
|
||||
['get_rented_vehicles'] = 'Véhicules en location',
|
||||
['invalid_amount'] = 'Montant invalide',
|
||||
['invoice_amount'] = 'Montant de la facture',
|
||||
['leaving'] = 'Sortir un véhicule personnel',
|
||||
['no'] = 'Non',
|
||||
['no_players'] = 'Aucun joueur à proximité',
|
||||
['not_enough_money'] = 'Vous n\'avez pas assez d\'argent',
|
||||
['not_rental'] = 'Ce n\'est pas un ~r~véhicule de location~s~',
|
||||
['not_yours'] = 'Ce véhicule ne vous appartient pas',
|
||||
['paid_rental'] = 'Vous avez ~g~payé~s~ votre location de véhicule : ~g~$',
|
||||
['personal_vehicle'] = 'Véhicule personnel',
|
||||
['pop_vehicle'] = 'Sortir véhicule',
|
||||
['price'] = 'au prix de $',
|
||||
['recruit'] = 'Recrue',
|
||||
['rent_vehicle'] = 'Concessionnaire - Véhicules en location',
|
||||
['rental_amount'] = 'Montant de la location',
|
||||
['sell_menu'] = 'Appuez sur ~INPUT_CONTEXT~ pour vendre',
|
||||
['set_vehicle_owner_rent'] = 'Attribuer véhicule [Location]',
|
||||
['set_vehicle_owner_sell'] = 'Attribuer véhicule [Vente]',
|
||||
['set_vehicle_owner_sell_society'] = 'Attribuer véhicule [Vente] [Société]',
|
||||
['shop_menu'] = 'Appuez sur ~INPUT_CONTEXT~ pour accéder au menu',
|
||||
['the_boss'] = 'Patron',
|
||||
['vehicle'] = 'Le véhicule',
|
||||
['vehicle_dealer'] = 'Concessionnaire - Véhicules',
|
||||
['vehicle_menu'] = 'Appuez sur ~INPUT_CONTEXT~ pour rendre votre véhicule',
|
||||
['vehicle_purchased'] = 'Vous avez acheté un véhicule',
|
||||
['vehicle_set_owned'] = 'Le véhicule ~y~%s~s~ a été attribué à ~b~%s~s~',
|
||||
['vehicle_set_rented'] = 'Le véhicule ~y~%s~s~ a été loué à ~b~%s~s~',
|
||||
['vehicle_sold'] = 'Véhicule ~g~vendu~s~',
|
||||
['vehicle_sold_to'] = 'Véhicule ~y~%s~s~ vendu à ~b~%s~s~',
|
||||
['wash_money'] = 'Blanchir argent',
|
||||
['withdraw_amount'] = 'Montant du retrait',
|
||||
['withdraw_money'] = 'Retirer argent société',
|
||||
['yes'] = 'Oui',
|
||||
['deposit_stock'] = 'déposer Stock',
|
||||
['take_stock'] = 'prendre Stock',
|
||||
['dealership_stock'] = 'concession Stock',
|
||||
['amount'] = 'quantité',
|
||||
['quantity_invalid'] = 'quantité invalide',
|
||||
['inventory'] = 'inventaire',
|
||||
['dealership'] = 'concession',
|
||||
['dealer_customers'] = 'client concession',
|
||||
['have_withdrawn'] = 'Vous avez retiré ',
|
||||
['added'] = 'vous avez ajouté ',
|
||||
}
|
||||
|
||||
+230
-230
@@ -27,16 +27,16 @@ CREATE TABLE `cardealer_vehicles` (
|
||||
);
|
||||
|
||||
CREATE TABLE `owned_vehicles` (
|
||||
|
||||
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`vehicle` longtext NOT NULL,
|
||||
`owner` varchar(60) NOT NULL,
|
||||
|
||||
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
||||
|
||||
CREATE TABLE `rented_vehicles` (
|
||||
|
||||
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`vehicle` varchar(60) NOT NULL,
|
||||
`plate` varchar(10) NOT NULL,
|
||||
@@ -44,31 +44,31 @@ CREATE TABLE `rented_vehicles` (
|
||||
`base_price` int(11) NOT NULL,
|
||||
`rent_price` int(11) NOT NULL,
|
||||
`owner` varchar(255) NOT NULL,
|
||||
|
||||
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
||||
|
||||
CREATE TABLE `vehicle_categories` (
|
||||
|
||||
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(60) NOT NULL,
|
||||
`label` varchar(60) NOT NULL,
|
||||
|
||||
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
||||
|
||||
INSERT INTO `vehicle_categories` (name, label) VALUES
|
||||
('compacts','Compacts'),
|
||||
('coupes','Coupés'),
|
||||
('sedans','Sedans'),
|
||||
('sports','Sports'),
|
||||
('sportsclassics','Sports Classics'),
|
||||
('super','Super'),
|
||||
('muscle','Muscle'),
|
||||
('offroad','Off Road'),
|
||||
('suvs','SUVs'),
|
||||
('vans','Vans'),
|
||||
('motorcycles','Motos')
|
||||
INSERT INTO `vehicle_categories` (name, label) VALUES
|
||||
('compacts','Compacts'),
|
||||
('coupes','Coupés'),
|
||||
('sedans','Sedans'),
|
||||
('sports','Sports'),
|
||||
('sportsclassics','Sports Classics'),
|
||||
('super','Super'),
|
||||
('muscle','Muscle'),
|
||||
('offroad','Off Road'),
|
||||
('suvs','SUVs'),
|
||||
('vans','Vans'),
|
||||
('motorcycles','Motos')
|
||||
;
|
||||
|
||||
CREATE TABLE `vehicles` (
|
||||
@@ -80,216 +80,216 @@ CREATE TABLE `vehicles` (
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
||||
|
||||
INSERT INTO `vehicles` (name, model, price, category) VALUES
|
||||
('Blade','blade',15000,'muscle'),
|
||||
('Buccaneer','buccaneer',18000,'muscle'),
|
||||
('Buccaneer Rider','buccaneer2',24000,'muscle'),
|
||||
('Chino','chino',15000,'muscle'),
|
||||
('Chino Luxe','chino2',19000,'muscle'),
|
||||
('Coquette BlackFin','coquette3',55000,'muscle'),
|
||||
('Dominator','dominator',35000,'muscle'),
|
||||
('Dukes','dukes',28000,'muscle'),
|
||||
('Gauntlet','gauntlet',30000,'muscle'),
|
||||
('Hotknife','hotknife',125000,'muscle'),
|
||||
('Faction','faction',20000,'muscle'),
|
||||
('Faction Rider','faction2',30000,'muscle'),
|
||||
('Faction XL','faction3',40000,'muscle'),
|
||||
('Nightshade','nightshade',65000,'muscle'),
|
||||
('Phoenix','phoenix',12500,'muscle'),
|
||||
('Picador','picador',18000,'muscle'),
|
||||
('Sabre Turbo','sabregt',20000,'muscle'),
|
||||
('Sabre GT','sabregt2',25000,'muscle'),
|
||||
('Slam Van','slamvan3',11500,'muscle'),
|
||||
('Tampa','tampa',16000,'muscle'),
|
||||
('Virgo','virgo',14000,'muscle'),
|
||||
('Vigero','vigero',12500,'muscle'),
|
||||
('Voodoo','voodoo',7200,'muscle'),
|
||||
('Blista','blista',8000,'compacts'),
|
||||
('Brioso R/A','brioso',18000,'compacts'),
|
||||
('Issi','issi2',10000,'compacts'),
|
||||
('Panto','panto',10000,'compacts'),
|
||||
('Prairie','prairie',12000,'compacts'),
|
||||
('Bison','bison',45000,'vans'),
|
||||
('Bobcat XL','bobcatxl',32000,'vans'),
|
||||
('Burrito','burrito3',19000,'vans'),
|
||||
('Burrito','gburrito2',29000,'vans'),
|
||||
('Camper','camper',42000,'vans'),
|
||||
('Gang Burrito','gburrito',45000,'vans'),
|
||||
('Journey','journey',6500,'vans'),
|
||||
('Minivan','minivan',13000,'vans'),
|
||||
('Moonbeam','moonbeam',18000,'vans'),
|
||||
('Moonbeam Rider','moonbeam2',35000,'vans'),
|
||||
('Paradise','paradise',19000,'vans'),
|
||||
('Rumpo','rumpo',15000,'vans'),
|
||||
('Rumpo Trail','rumpo3',19500,'vans'),
|
||||
('Surfer','surfer',12000,'vans'),
|
||||
('Youga','youga',10800,'vans'),
|
||||
('Youga Luxuary','youga2',14500,'vans'),
|
||||
('Asea','asea',5500,'sedans'),
|
||||
('Cognoscenti','cognoscenti',55000,'sedans'),
|
||||
('Emperor','emperor',8500,'sedans'),
|
||||
('Fugitive','fugitive',12000,'sedans'),
|
||||
('Glendale','glendale',6500,'sedans'),
|
||||
('Intruder','intruder',7500,'sedans'),
|
||||
('Premier','premier',8000,'sedans'),
|
||||
('Primo Custom','primo2',14000,'sedans'),
|
||||
('Regina','regina',5000,'sedans'),
|
||||
('Schafter','schafter2',25000,'sedans'),
|
||||
('Stretch','stretch',90000,'sedans'),
|
||||
('Super Diamond','superd',130000,'sedans'),
|
||||
('Tailgater','tailgater',30000,'sedans'),
|
||||
('Warrener','warrener',4000,'sedans'),
|
||||
('Washington','washington',9000,'sedans'),
|
||||
('Baller','baller2',40000,'suvs'),
|
||||
('Baller Sport','baller3',60000,'suvs'),
|
||||
('Cavalcade','cavalcade2',55000,'suvs'),
|
||||
('Contender','contender',70000,'suvs'),
|
||||
('Dubsta','dubsta',45000,'suvs'),
|
||||
('Dubsta Luxuary','dubsta2',60000,'suvs'),
|
||||
('Fhantom','fq2',17000,'suvs'),
|
||||
('Grabger','granger',50000,'suvs'),
|
||||
('Gresley','gresley',47500,'suvs'),
|
||||
('Huntley S','huntley',40000,'suvs'),
|
||||
('Landstalker','landstalker',35000,'suvs'),
|
||||
('Mesa','mesa',16000,'suvs'),
|
||||
('Mesa Trail','mesa3',40000,'suvs'),
|
||||
('Patriot','patriot',55000,'suvs'),
|
||||
('Radius','radi',29000,'suvs'),
|
||||
('Rocoto','rocoto',45000,'suvs'),
|
||||
('Seminole','seminole',25000,'suvs'),
|
||||
('XLS','xls',32000,'suvs'),
|
||||
('Btype','btype',62000,'sportsclassics'),
|
||||
('Btype Luxe','btype3',85000,'sportsclassics'),
|
||||
('Btype Hotroad','btype2',155000,'sportsclassics'),
|
||||
('Casco','casco',30000,'sportsclassics'),
|
||||
('Coquette Classic','coquette2',40000,'sportsclassics'),
|
||||
('Manana','manana',12800,'sportsclassics'),
|
||||
('Monroe','monroe',55000,'sportsclassics'),
|
||||
('Pigalle','pigalle',20000,'sportsclassics'),
|
||||
('Stinger','stinger',80000,'sportsclassics'),
|
||||
('Stinger GT','stingergt',75000,'sportsclassics'),
|
||||
('Stirling GT','feltzer3',65000,'sportsclassics'),
|
||||
('Z-Type','ztype',220000,'sportsclassics'),
|
||||
('Bifta','bifta',12000,'offroad'),
|
||||
('Bf Injection','bfinjection',16000,'offroad'),
|
||||
('Blazer','blazer',6500,'offroad'),
|
||||
('Blazer Sport','blazer4',8500,'offroad'),
|
||||
('Brawler','brawler',45000,'offroad'),
|
||||
('Bubsta 6x6','dubsta3',120000,'offroad'),
|
||||
('Dune Buggy','dune',8000,'offroad'),
|
||||
('Guardian','guardian',45000,'offroad'),
|
||||
('Rebel','rebel2',35000,'offroad'),
|
||||
('Sandking','sandking',55000,'offroad'),
|
||||
('The Liberator','monster',210000,'offroad'),
|
||||
('Trophy Truck','trophytruck',60000,'offroad'),
|
||||
('Trophy Truck Limited','trophytruck2',80000,'offroad'),
|
||||
('Cognoscenti Cabrio','cogcabrio',55000,'coupes'),
|
||||
('Exemplar','exemplar',32000,'coupes'),
|
||||
('F620','f620',40000,'coupes'),
|
||||
('Felon','felon',42000,'coupes'),
|
||||
('Felon GT','felon2',55000,'coupes'),
|
||||
('Jackal','jackal',38000,'coupes'),
|
||||
('Oracle XS','oracle2',35000,'coupes'),
|
||||
('Sentinel','sentinel',32000,'coupes'),
|
||||
('Sentinel XS','sentinel2',40000,'coupes'),
|
||||
('Windsor','windsor',95000,'coupes'),
|
||||
('Windsor Drop','windsor2',125000,'coupes'),
|
||||
('Zion','zion',36000,'coupes'),
|
||||
('Zion Cabrio','zion2',45000,'coupes'),
|
||||
('9F','ninef',65000,'sports'),
|
||||
('9F Cabrio','ninef2',80000,'sports'),
|
||||
('Alpha','alpha',60000,'sports'),
|
||||
('Banshee','banshee',70000,'sports'),
|
||||
('Bestia GTS','bestiagts',55000,'sports'),
|
||||
('Buffalo','buffalo',12000,'sports'),
|
||||
('Buffalo S','buffalo2',20000,'sports'),
|
||||
('Carbonizzare','carbonizzare',75000,'sports'),
|
||||
('Comet','comet2',65000,'sports'),
|
||||
('Coquette','coquette',65000,'sports'),
|
||||
('Drift Tampa','tampa2',80000,'sports'),
|
||||
('Elegy','elegy2',38500,'sports'),
|
||||
('Feltzer','feltzer2',55000,'sports'),
|
||||
('Furore GT','furoregt',45000,'sports'),
|
||||
('Fusilade','fusilade',40000,'sports'),
|
||||
('Jester','jester',65000,'sports'),
|
||||
('Jester(Racecar)','jester2',135000,'sports'),
|
||||
('Khamelion','khamelion',38000,'sports'),
|
||||
('Kuruma','kuruma',30000,'sports'),
|
||||
('Lynx','lynx',40000,'sports'),
|
||||
('Mamba','mamba',70000,'sports'),
|
||||
('Massacro','massacro',65000,'sports'),
|
||||
('Massacro(Racecar)','massacro2',130000,'sports'),
|
||||
('Omnis','omnis',35000,'sports'),
|
||||
('Penumbra','penumbra',28000,'sports'),
|
||||
('Rapid GT','rapidgt',35000,'sports'),
|
||||
('Rapid GT Convertible','rapidgt2',45000,'sports'),
|
||||
('Schafter V12','schafter3',50000,'sports'),
|
||||
('Seven 70','seven70',39500,'sports'),
|
||||
('Sultan','sultan',15000,'sports'),
|
||||
('Surano','surano',50000,'sports'),
|
||||
('Tropos','tropos',40000,'sports'),
|
||||
('Verlierer','verlierer2',70000,'sports'),
|
||||
('Adder','adder',900000,'super'),
|
||||
('Banshee 900R','banshee2',255000,'super'),
|
||||
('Bullet','bullet',90000,'super'),
|
||||
('Cheetah','cheetah',375000,'super'),
|
||||
('Entity XF','entityxf',425000,'super'),
|
||||
('ETR1','sheava',220000,'super'),
|
||||
('FMJ','fmj',185000,'super'),
|
||||
('Infernus','infernus',180000,'super'),
|
||||
('Osiris','osiris',160000,'super'),
|
||||
('Pfister','pfister811',85000,'super'),
|
||||
('RE-7B','le7b',325000,'super'),
|
||||
('Reaper','reaper',150000,'super'),
|
||||
('Sultan RS','sultanrs',65000,'super'),
|
||||
('T20','t20',300000,'super'),
|
||||
('Turismo R','turismor',350000,'super'),
|
||||
('Tyrus','tyrus',600000,'super'),
|
||||
('Vacca','vacca',120000,'super'),
|
||||
('Voltic','voltic',90000,'super'),
|
||||
('X80 Proto','prototipo',2500000,'super'),
|
||||
('Zentorno','zentorno',1500000,'super'),
|
||||
('Akuma','AKUMA',7500,'motorcycles'),
|
||||
('Avarus','avarus',18000,'motorcycles'),
|
||||
('Bagger','bagger',13500,'motorcycles'),
|
||||
('Bati 801','bati',12000,'motorcycles'),
|
||||
('Bati 801RR','bati2',19000,'motorcycles'),
|
||||
('BF400','bf400',6500,'motorcycles'),
|
||||
('BMX (velo)','bmx',160,'motorcycles'),
|
||||
('Carbon RS','carbonrs',18000,'motorcycles'),
|
||||
('Chimera','chimera',38000,'motorcycles'),
|
||||
('Cliffhanger','cliffhanger',9500,'motorcycles'),
|
||||
('Cruiser (velo)','cruiser',510,'motorcycles'),
|
||||
('Daemon','daemon',11500,'motorcycles'),
|
||||
('Daemon High','daemon2',13500,'motorcycles'),
|
||||
('Defiler','defiler',9800,'motorcycles'),
|
||||
('Double T','double',28000,'motorcycles'),
|
||||
('Enduro','enduro',5500,'motorcycles'),
|
||||
('Esskey','esskey',4200,'motorcycles'),
|
||||
('Faggio','faggio',1900,'motorcycles'),
|
||||
('Vespa','faggio2',2800,'motorcycles'),
|
||||
('Fixter (velo)','fixter',225,'motorcycles'),
|
||||
('Gargoyle','gargoyle',16500,'motorcycles'),
|
||||
('Hakuchou','hakuchou',31000,'motorcycles'),
|
||||
('Hakuchou Sport','hakuchou2',55000,'motorcycles'),
|
||||
('Hexer','hexer',12000,'motorcycles'),
|
||||
('Innovation','innovation',23500,'motorcycles'),
|
||||
('Manchez','manchez',5300,'motorcycles'),
|
||||
('Nemesis','nemesis',5800,'motorcycles'),
|
||||
('Nightblade','nightblade',35000,'motorcycles'),
|
||||
('PCJ-600','pcj',6200,'motorcycles'),
|
||||
('Ruffian','ruffian',6800,'motorcycles'),
|
||||
('Sanchez','sanchez',5300,'motorcycles'),
|
||||
('Sanchez Sport','sanchez2',5300,'motorcycles'),
|
||||
('Sanctus','sanctus',25000,'motorcycles'),
|
||||
('Scorcher (velo)','scorcher',280,'motorcycles'),
|
||||
('Sovereign','sovereign',22000,'motorcycles'),
|
||||
('Shotaro Concept','shotaro',320000,'motorcycles'),
|
||||
('Thrust','thrust',24000,'motorcycles'),
|
||||
('Tri bike (velo)','tribike3',520,'motorcycles'),
|
||||
('Vader','vader',7200,'motorcycles'),
|
||||
('Vortex','vortex',9800,'motorcycles'),
|
||||
('Woflsbane','wolfsbane',9000,'motorcycles'),
|
||||
('Zombie','zombiea',9500,'motorcycles'),
|
||||
('Zombie Luxuary','zombieb',12000,'motorcycles')
|
||||
INSERT INTO `vehicles` (name, model, price, category) VALUES
|
||||
('Blade','blade',15000,'muscle'),
|
||||
('Buccaneer','buccaneer',18000,'muscle'),
|
||||
('Buccaneer Rider','buccaneer2',24000,'muscle'),
|
||||
('Chino','chino',15000,'muscle'),
|
||||
('Chino Luxe','chino2',19000,'muscle'),
|
||||
('Coquette BlackFin','coquette3',55000,'muscle'),
|
||||
('Dominator','dominator',35000,'muscle'),
|
||||
('Dukes','dukes',28000,'muscle'),
|
||||
('Gauntlet','gauntlet',30000,'muscle'),
|
||||
('Hotknife','hotknife',125000,'muscle'),
|
||||
('Faction','faction',20000,'muscle'),
|
||||
('Faction Rider','faction2',30000,'muscle'),
|
||||
('Faction XL','faction3',40000,'muscle'),
|
||||
('Nightshade','nightshade',65000,'muscle'),
|
||||
('Phoenix','phoenix',12500,'muscle'),
|
||||
('Picador','picador',18000,'muscle'),
|
||||
('Sabre Turbo','sabregt',20000,'muscle'),
|
||||
('Sabre GT','sabregt2',25000,'muscle'),
|
||||
('Slam Van','slamvan3',11500,'muscle'),
|
||||
('Tampa','tampa',16000,'muscle'),
|
||||
('Virgo','virgo',14000,'muscle'),
|
||||
('Vigero','vigero',12500,'muscle'),
|
||||
('Voodoo','voodoo',7200,'muscle'),
|
||||
('Blista','blista',8000,'compacts'),
|
||||
('Brioso R/A','brioso',18000,'compacts'),
|
||||
('Issi','issi2',10000,'compacts'),
|
||||
('Panto','panto',10000,'compacts'),
|
||||
('Prairie','prairie',12000,'compacts'),
|
||||
('Bison','bison',45000,'vans'),
|
||||
('Bobcat XL','bobcatxl',32000,'vans'),
|
||||
('Burrito','burrito3',19000,'vans'),
|
||||
('Burrito','gburrito2',29000,'vans'),
|
||||
('Camper','camper',42000,'vans'),
|
||||
('Gang Burrito','gburrito',45000,'vans'),
|
||||
('Journey','journey',6500,'vans'),
|
||||
('Minivan','minivan',13000,'vans'),
|
||||
('Moonbeam','moonbeam',18000,'vans'),
|
||||
('Moonbeam Rider','moonbeam2',35000,'vans'),
|
||||
('Paradise','paradise',19000,'vans'),
|
||||
('Rumpo','rumpo',15000,'vans'),
|
||||
('Rumpo Trail','rumpo3',19500,'vans'),
|
||||
('Surfer','surfer',12000,'vans'),
|
||||
('Youga','youga',10800,'vans'),
|
||||
('Youga Luxuary','youga2',14500,'vans'),
|
||||
('Asea','asea',5500,'sedans'),
|
||||
('Cognoscenti','cognoscenti',55000,'sedans'),
|
||||
('Emperor','emperor',8500,'sedans'),
|
||||
('Fugitive','fugitive',12000,'sedans'),
|
||||
('Glendale','glendale',6500,'sedans'),
|
||||
('Intruder','intruder',7500,'sedans'),
|
||||
('Premier','premier',8000,'sedans'),
|
||||
('Primo Custom','primo2',14000,'sedans'),
|
||||
('Regina','regina',5000,'sedans'),
|
||||
('Schafter','schafter2',25000,'sedans'),
|
||||
('Stretch','stretch',90000,'sedans'),
|
||||
('Super Diamond','superd',130000,'sedans'),
|
||||
('Tailgater','tailgater',30000,'sedans'),
|
||||
('Warrener','warrener',4000,'sedans'),
|
||||
('Washington','washington',9000,'sedans'),
|
||||
('Baller','baller2',40000,'suvs'),
|
||||
('Baller Sport','baller3',60000,'suvs'),
|
||||
('Cavalcade','cavalcade2',55000,'suvs'),
|
||||
('Contender','contender',70000,'suvs'),
|
||||
('Dubsta','dubsta',45000,'suvs'),
|
||||
('Dubsta Luxuary','dubsta2',60000,'suvs'),
|
||||
('Fhantom','fq2',17000,'suvs'),
|
||||
('Grabger','granger',50000,'suvs'),
|
||||
('Gresley','gresley',47500,'suvs'),
|
||||
('Huntley S','huntley',40000,'suvs'),
|
||||
('Landstalker','landstalker',35000,'suvs'),
|
||||
('Mesa','mesa',16000,'suvs'),
|
||||
('Mesa Trail','mesa3',40000,'suvs'),
|
||||
('Patriot','patriot',55000,'suvs'),
|
||||
('Radius','radi',29000,'suvs'),
|
||||
('Rocoto','rocoto',45000,'suvs'),
|
||||
('Seminole','seminole',25000,'suvs'),
|
||||
('XLS','xls',32000,'suvs'),
|
||||
('Btype','btype',62000,'sportsclassics'),
|
||||
('Btype Luxe','btype3',85000,'sportsclassics'),
|
||||
('Btype Hotroad','btype2',155000,'sportsclassics'),
|
||||
('Casco','casco',30000,'sportsclassics'),
|
||||
('Coquette Classic','coquette2',40000,'sportsclassics'),
|
||||
('Manana','manana',12800,'sportsclassics'),
|
||||
('Monroe','monroe',55000,'sportsclassics'),
|
||||
('Pigalle','pigalle',20000,'sportsclassics'),
|
||||
('Stinger','stinger',80000,'sportsclassics'),
|
||||
('Stinger GT','stingergt',75000,'sportsclassics'),
|
||||
('Stirling GT','feltzer3',65000,'sportsclassics'),
|
||||
('Z-Type','ztype',220000,'sportsclassics'),
|
||||
('Bifta','bifta',12000,'offroad'),
|
||||
('Bf Injection','bfinjection',16000,'offroad'),
|
||||
('Blazer','blazer',6500,'offroad'),
|
||||
('Blazer Sport','blazer4',8500,'offroad'),
|
||||
('Brawler','brawler',45000,'offroad'),
|
||||
('Bubsta 6x6','dubsta3',120000,'offroad'),
|
||||
('Dune Buggy','dune',8000,'offroad'),
|
||||
('Guardian','guardian',45000,'offroad'),
|
||||
('Rebel','rebel2',35000,'offroad'),
|
||||
('Sandking','sandking',55000,'offroad'),
|
||||
('The Liberator','monster',210000,'offroad'),
|
||||
('Trophy Truck','trophytruck',60000,'offroad'),
|
||||
('Trophy Truck Limited','trophytruck2',80000,'offroad'),
|
||||
('Cognoscenti Cabrio','cogcabrio',55000,'coupes'),
|
||||
('Exemplar','exemplar',32000,'coupes'),
|
||||
('F620','f620',40000,'coupes'),
|
||||
('Felon','felon',42000,'coupes'),
|
||||
('Felon GT','felon2',55000,'coupes'),
|
||||
('Jackal','jackal',38000,'coupes'),
|
||||
('Oracle XS','oracle2',35000,'coupes'),
|
||||
('Sentinel','sentinel',32000,'coupes'),
|
||||
('Sentinel XS','sentinel2',40000,'coupes'),
|
||||
('Windsor','windsor',95000,'coupes'),
|
||||
('Windsor Drop','windsor2',125000,'coupes'),
|
||||
('Zion','zion',36000,'coupes'),
|
||||
('Zion Cabrio','zion2',45000,'coupes'),
|
||||
('9F','ninef',65000,'sports'),
|
||||
('9F Cabrio','ninef2',80000,'sports'),
|
||||
('Alpha','alpha',60000,'sports'),
|
||||
('Banshee','banshee',70000,'sports'),
|
||||
('Bestia GTS','bestiagts',55000,'sports'),
|
||||
('Buffalo','buffalo',12000,'sports'),
|
||||
('Buffalo S','buffalo2',20000,'sports'),
|
||||
('Carbonizzare','carbonizzare',75000,'sports'),
|
||||
('Comet','comet2',65000,'sports'),
|
||||
('Coquette','coquette',65000,'sports'),
|
||||
('Drift Tampa','tampa2',80000,'sports'),
|
||||
('Elegy','elegy2',38500,'sports'),
|
||||
('Feltzer','feltzer2',55000,'sports'),
|
||||
('Furore GT','furoregt',45000,'sports'),
|
||||
('Fusilade','fusilade',40000,'sports'),
|
||||
('Jester','jester',65000,'sports'),
|
||||
('Jester(Racecar)','jester2',135000,'sports'),
|
||||
('Khamelion','khamelion',38000,'sports'),
|
||||
('Kuruma','kuruma',30000,'sports'),
|
||||
('Lynx','lynx',40000,'sports'),
|
||||
('Mamba','mamba',70000,'sports'),
|
||||
('Massacro','massacro',65000,'sports'),
|
||||
('Massacro(Racecar)','massacro2',130000,'sports'),
|
||||
('Omnis','omnis',35000,'sports'),
|
||||
('Penumbra','penumbra',28000,'sports'),
|
||||
('Rapid GT','rapidgt',35000,'sports'),
|
||||
('Rapid GT Convertible','rapidgt2',45000,'sports'),
|
||||
('Schafter V12','schafter3',50000,'sports'),
|
||||
('Seven 70','seven70',39500,'sports'),
|
||||
('Sultan','sultan',15000,'sports'),
|
||||
('Surano','surano',50000,'sports'),
|
||||
('Tropos','tropos',40000,'sports'),
|
||||
('Verlierer','verlierer2',70000,'sports'),
|
||||
('Adder','adder',900000,'super'),
|
||||
('Banshee 900R','banshee2',255000,'super'),
|
||||
('Bullet','bullet',90000,'super'),
|
||||
('Cheetah','cheetah',375000,'super'),
|
||||
('Entity XF','entityxf',425000,'super'),
|
||||
('ETR1','sheava',220000,'super'),
|
||||
('FMJ','fmj',185000,'super'),
|
||||
('Infernus','infernus',180000,'super'),
|
||||
('Osiris','osiris',160000,'super'),
|
||||
('Pfister','pfister811',85000,'super'),
|
||||
('RE-7B','le7b',325000,'super'),
|
||||
('Reaper','reaper',150000,'super'),
|
||||
('Sultan RS','sultanrs',65000,'super'),
|
||||
('T20','t20',300000,'super'),
|
||||
('Turismo R','turismor',350000,'super'),
|
||||
('Tyrus','tyrus',600000,'super'),
|
||||
('Vacca','vacca',120000,'super'),
|
||||
('Voltic','voltic',90000,'super'),
|
||||
('X80 Proto','prototipo',2500000,'super'),
|
||||
('Zentorno','zentorno',1500000,'super'),
|
||||
('Akuma','AKUMA',7500,'motorcycles'),
|
||||
('Avarus','avarus',18000,'motorcycles'),
|
||||
('Bagger','bagger',13500,'motorcycles'),
|
||||
('Bati 801','bati',12000,'motorcycles'),
|
||||
('Bati 801RR','bati2',19000,'motorcycles'),
|
||||
('BF400','bf400',6500,'motorcycles'),
|
||||
('BMX (velo)','bmx',160,'motorcycles'),
|
||||
('Carbon RS','carbonrs',18000,'motorcycles'),
|
||||
('Chimera','chimera',38000,'motorcycles'),
|
||||
('Cliffhanger','cliffhanger',9500,'motorcycles'),
|
||||
('Cruiser (velo)','cruiser',510,'motorcycles'),
|
||||
('Daemon','daemon',11500,'motorcycles'),
|
||||
('Daemon High','daemon2',13500,'motorcycles'),
|
||||
('Defiler','defiler',9800,'motorcycles'),
|
||||
('Double T','double',28000,'motorcycles'),
|
||||
('Enduro','enduro',5500,'motorcycles'),
|
||||
('Esskey','esskey',4200,'motorcycles'),
|
||||
('Faggio','faggio',1900,'motorcycles'),
|
||||
('Vespa','faggio2',2800,'motorcycles'),
|
||||
('Fixter (velo)','fixter',225,'motorcycles'),
|
||||
('Gargoyle','gargoyle',16500,'motorcycles'),
|
||||
('Hakuchou','hakuchou',31000,'motorcycles'),
|
||||
('Hakuchou Sport','hakuchou2',55000,'motorcycles'),
|
||||
('Hexer','hexer',12000,'motorcycles'),
|
||||
('Innovation','innovation',23500,'motorcycles'),
|
||||
('Manchez','manchez',5300,'motorcycles'),
|
||||
('Nemesis','nemesis',5800,'motorcycles'),
|
||||
('Nightblade','nightblade',35000,'motorcycles'),
|
||||
('PCJ-600','pcj',6200,'motorcycles'),
|
||||
('Ruffian','ruffian',6800,'motorcycles'),
|
||||
('Sanchez','sanchez',5300,'motorcycles'),
|
||||
('Sanchez Sport','sanchez2',5300,'motorcycles'),
|
||||
('Sanctus','sanctus',25000,'motorcycles'),
|
||||
('Scorcher (velo)','scorcher',280,'motorcycles'),
|
||||
('Sovereign','sovereign',22000,'motorcycles'),
|
||||
('Shotaro Concept','shotaro',320000,'motorcycles'),
|
||||
('Thrust','thrust',24000,'motorcycles'),
|
||||
('Tri bike (velo)','tribike3',520,'motorcycles'),
|
||||
('Vader','vader',7200,'motorcycles'),
|
||||
('Vortex','vortex',9800,'motorcycles'),
|
||||
('Woflsbane','wolfsbane',9000,'motorcycles'),
|
||||
('Zombie','zombiea',9500,'motorcycles'),
|
||||
('Zombie Luxuary','zombieb',12000,'motorcycles')
|
||||
;
|
||||
|
||||
+364
-484
@@ -7,598 +7,478 @@ TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
|
||||
TriggerEvent('esx_phone:registerNumber', 'cardealer', _U('dealer_customers'), false, false)
|
||||
TriggerEvent('esx_society:registerSociety', 'cardealer', 'Concessionnaire', 'society_cardealer', 'society_cardealer', 'society_cardealer', {type = 'private'})
|
||||
|
||||
function RemoveOwnedVehicle(plate)
|
||||
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM owned_vehicles',
|
||||
{},
|
||||
function(result)
|
||||
|
||||
for i=1, #result, 1 do
|
||||
|
||||
local vehicleProps = json.decode(result[i].vehicle)
|
||||
|
||||
if vehicleProps.plate == plate then
|
||||
|
||||
MySQL.Async.execute(
|
||||
'DELETE FROM owned_vehicles WHERE id = @id',
|
||||
{
|
||||
['@id'] = result[i].id
|
||||
}
|
||||
)
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
)
|
||||
function RemoveOwnedVehicle (plate)
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM owned_vehicles',
|
||||
{},
|
||||
function (result)
|
||||
for i=1, #result, 1 do
|
||||
local vehicleProps = json.decode(result[i].vehicle)
|
||||
|
||||
if vehicleProps.plate == plate then
|
||||
MySQL.Async.execute(
|
||||
'DELETE FROM owned_vehicles WHERE id = @id',
|
||||
{ ['@id'] = result[i].id }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
)
|
||||
end
|
||||
|
||||
AddEventHandler('onMySQLReady', function()
|
||||
AddEventHandler('onMySQLReady', function ()
|
||||
Categories = MySQL.Sync.fetchAll('SELECT * FROM vehicle_categories')
|
||||
local vehicles = MySQL.Sync.fetchAll('SELECT * FROM vehicles')
|
||||
|
||||
Categories = MySQL.Sync.fetchAll('SELECT * FROM vehicle_categories')
|
||||
local vehicles = MySQL.Sync.fetchAll('SELECT * FROM vehicles')
|
||||
for i=1, #vehicles, 1 do
|
||||
local vehicle = vehicles[i]
|
||||
|
||||
for i=1, #vehicles, 1 do
|
||||
|
||||
local vehicle = vehicles[i]
|
||||
|
||||
for j=1, #Categories, 1 do
|
||||
if Categories[j].name == vehicle.category then
|
||||
vehicle.categoryLabel = Categories[j].label
|
||||
end
|
||||
end
|
||||
|
||||
table.insert(Vehicles, vehicle)
|
||||
|
||||
end
|
||||
for j=1, #Categories, 1 do
|
||||
if Categories[j].name == vehicle.category then
|
||||
vehicle.categoryLabel = Categories[j].label
|
||||
end
|
||||
end
|
||||
|
||||
table.insert(Vehicles, vehicle)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx_vehicleshop:setVehicleOwned')
|
||||
AddEventHandler('esx_vehicleshop:setVehicleOwned', function(vehicleProps)
|
||||
|
||||
local _source = source
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
|
||||
MySQL.Async.execute(
|
||||
'INSERT INTO owned_vehicles (vehicle, owner) VALUES (@vehicle, @owner)',
|
||||
{
|
||||
['@vehicle'] = json.encode(vehicleProps),
|
||||
['@owner'] = xPlayer.identifier
|
||||
},
|
||||
function(rowsChanged)
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('vehicle').. vehicleProps.plate .. _('belongs'))
|
||||
end
|
||||
)
|
||||
AddEventHandler('esx_vehicleshop:setVehicleOwned', function (vehicleProps)
|
||||
local _source = source
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
|
||||
MySQL.Async.execute(
|
||||
'INSERT INTO owned_vehicles (vehicle, owner) VALUES (@vehicle, @owner)',
|
||||
{
|
||||
['@vehicle'] = json.encode(vehicleProps),
|
||||
['@owner'] = xPlayer.identifier,
|
||||
},
|
||||
function (rowsChanged)
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('vehicle').. vehicleProps.plate .. _('belongs'))
|
||||
end
|
||||
)
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx_vehicleshop:setVehicleOwnedPlayerId')
|
||||
AddEventHandler('esx_vehicleshop:setVehicleOwnedPlayerId', function(playerId, vehicleProps)
|
||||
|
||||
local xPlayer = ESX.GetPlayerFromId(playerId)
|
||||
|
||||
MySQL.Async.execute(
|
||||
'INSERT INTO owned_vehicles (vehicle, owner) VALUES (@vehicle, @owner)',
|
||||
{
|
||||
['@vehicle'] = json.encode(vehicleProps),
|
||||
['@owner'] = xPlayer.identifier
|
||||
},
|
||||
function(rowsChanged)
|
||||
TriggerClientEvent('esx:showNotification', playerId, _U('vehicle') .. vehicleProps.plate .. _('belongs'))
|
||||
end
|
||||
)
|
||||
AddEventHandler('esx_vehicleshop:setVehicleOwnedPlayerId', function (playerId, vehicleProps)
|
||||
local xPlayer = ESX.GetPlayerFromId(playerId)
|
||||
|
||||
MySQL.Async.execute(
|
||||
'INSERT INTO owned_vehicles (vehicle, owner) VALUES (@vehicle, @owner)',
|
||||
{
|
||||
['@vehicle'] = json.encode(vehicleProps),
|
||||
['@owner'] = xPlayer.identifier,
|
||||
},
|
||||
function (rowsChanged)
|
||||
TriggerClientEvent('esx:showNotification', playerId, _U('vehicle') .. vehicleProps.plate .. _('belongs'))
|
||||
end
|
||||
)
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx_vehicleshop:setVehicleOwnedSociety')
|
||||
AddEventHandler('esx_vehicleshop:setVehicleOwnedSociety', function(society, vehicleProps)
|
||||
AddEventHandler('esx_vehicleshop:setVehicleOwnedSociety', function (society, vehicleProps)
|
||||
local _source = source
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
|
||||
local _source = source
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
|
||||
MySQL.Async.execute(
|
||||
'INSERT INTO owned_vehicles (vehicle, owner) VALUES (@vehicle, @owner)',
|
||||
{
|
||||
['@vehicle'] = json.encode(vehicleProps),
|
||||
['@owner'] = 'society:' .. society
|
||||
},
|
||||
function(rowsChanged)
|
||||
|
||||
end
|
||||
)
|
||||
MySQL.Async.execute(
|
||||
'INSERT INTO owned_vehicles (vehicle, owner) VALUES (@vehicle, @owner)',
|
||||
{
|
||||
['@vehicle'] = json.encode(vehicleProps),
|
||||
['@owner'] = 'society:' .. society,
|
||||
},
|
||||
function (rowsChanged)
|
||||
|
||||
end
|
||||
)
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx_vehicleshop:sellVehicle')
|
||||
AddEventHandler('esx_vehicleshop:sellVehicle', function(vehicle)
|
||||
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM cardealer_vehicles WHERE vehicle = @vehicle LIMIT 1',
|
||||
{
|
||||
['@vehicle'] = vehicle
|
||||
},
|
||||
function(result)
|
||||
|
||||
local id = result[1].id
|
||||
local price = result[1].price
|
||||
|
||||
MySQL.Async.execute(
|
||||
'DELETE FROM cardealer_vehicles WHERE id = @id',
|
||||
{
|
||||
['@id'] = id
|
||||
}
|
||||
)
|
||||
|
||||
end
|
||||
)
|
||||
AddEventHandler('esx_vehicleshop:sellVehicle', function (vehicle)
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM cardealer_vehicles WHERE vehicle = @vehicle LIMIT 1',
|
||||
{ ['@vehicle'] = vehicle },
|
||||
function (result)
|
||||
local id = result[1].id
|
||||
local price = result[1].price
|
||||
|
||||
MySQL.Async.execute(
|
||||
'DELETE FROM cardealer_vehicles WHERE id = @id',
|
||||
{ ['@id'] = id }
|
||||
)
|
||||
end
|
||||
)
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx_vehicleshop:rentVehicle')
|
||||
AddEventHandler('esx_vehicleshop:rentVehicle', function(vehicle, plate, playerName, basePrice, rentPrice, target)
|
||||
AddEventHandler('esx_vehicleshop:rentVehicle', function (vehicle, plate, playerName, basePrice, rentPrice, target)
|
||||
local xPlayer = ESX.GetPlayerFromId(target)
|
||||
|
||||
local xPlayer = ESX.GetPlayerFromId(target)
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM cardealer_vehicles WHERE vehicle = @vehicle LIMIT 1',
|
||||
{ ['@vehicle'] = vehicle },
|
||||
function (result)
|
||||
local id = result[1].id
|
||||
local price = result[1].price
|
||||
local owner = xPlayer.identifier
|
||||
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM cardealer_vehicles WHERE vehicle = @vehicle LIMIT 1',
|
||||
{
|
||||
['@vehicle'] = vehicle
|
||||
},
|
||||
function(result)
|
||||
|
||||
local id = result[1].id
|
||||
local price = result[1].price
|
||||
local owner = xPlayer.identifier
|
||||
|
||||
MySQL.Async.execute(
|
||||
'DELETE FROM cardealer_vehicles WHERE id = @id',
|
||||
{
|
||||
['@id'] = id
|
||||
}
|
||||
)
|
||||
|
||||
MySQL.Async.execute(
|
||||
'INSERT INTO rented_vehicles (vehicle, plate, player_name, base_price, rent_price, owner) VALUES (@vehicle, @plate, @player_name, @base_price, @rent_price, @owner)',
|
||||
{
|
||||
['@vehicle'] = vehicle,
|
||||
['@plate'] = plate,
|
||||
['@player_name'] = playerName,
|
||||
['@base_price'] = basePrice,
|
||||
['@rent_price'] = rentPrice,
|
||||
['@owner'] = owner
|
||||
}
|
||||
)
|
||||
|
||||
end
|
||||
)
|
||||
MySQL.Async.execute(
|
||||
'DELETE FROM cardealer_vehicles WHERE id = @id',
|
||||
{ ['@id'] = id }
|
||||
)
|
||||
|
||||
MySQL.Async.execute(
|
||||
'INSERT INTO rented_vehicles (vehicle, plate, player_name, base_price, rent_price, owner) VALUES (@vehicle, @plate, @player_name, @base_price, @rent_price, @owner)',
|
||||
{
|
||||
['@vehicle'] = vehicle,
|
||||
['@plate'] = plate,
|
||||
['@player_name'] = playerName,
|
||||
['@base_price'] = basePrice,
|
||||
['@rent_price'] = rentPrice,
|
||||
['@owner'] = owner,
|
||||
}
|
||||
)
|
||||
end
|
||||
)
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx_vehicleshop:setVehicleForAllPlayers')
|
||||
AddEventHandler('esx_vehicleshop:setVehicleForAllPlayers', function(props, x, y, z, radius)
|
||||
TriggerClientEvent('esx_vehicleshop:setVehicle', -1, props, x, y, z, radius)
|
||||
AddEventHandler('esx_vehicleshop:setVehicleForAllPlayers', function (props, x, y, z, radius)
|
||||
TriggerClientEvent('esx_vehicleshop:setVehicle', -1, props, x, y, z, radius)
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx_vehicleshop:getStockItem')
|
||||
AddEventHandler('esx_vehicleshop:getStockItem', function(itemName, count)
|
||||
AddEventHandler('esx_vehicleshop:getStockItem', function (itemName, count)
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
TriggerEvent('esx_addoninventory:getSharedInventory', 'society_cardealer', function (inventory)
|
||||
local item = inventory.getItem(itemName)
|
||||
|
||||
TriggerEvent('esx_addoninventory:getSharedInventory', 'society_cardealer', function(inventory)
|
||||
|
||||
local item = inventory.getItem(itemName)
|
||||
|
||||
if item.count >= count then
|
||||
inventory.removeItem(itemName, count)
|
||||
xPlayer.addInventoryItem(itemName, count)
|
||||
else
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, 'Quantité invalide')
|
||||
end
|
||||
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('have_withdrawn') .. ' x' .. count .. ' ' .. item.label)
|
||||
|
||||
end)
|
||||
if item.count >= count then
|
||||
inventory.removeItem(itemName, count)
|
||||
xPlayer.addInventoryItem(itemName, count)
|
||||
else
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, 'Quantité invalide')
|
||||
end
|
||||
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('have_withdrawn') .. ' x' .. count .. ' ' .. item.label)
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx_vehicleshop:putStockItems')
|
||||
AddEventHandler('esx_vehicleshop:putStockItems', function(itemName, count)
|
||||
AddEventHandler('esx_vehicleshop:putStockItems', function (itemName, count)
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
TriggerEvent('esx_addoninventory:getSharedInventory', 'society_cardealer', function (inventory)
|
||||
local item = inventory.getItem(itemName)
|
||||
|
||||
TriggerEvent('esx_addoninventory:getSharedInventory', 'society_cardealer', function(inventory)
|
||||
|
||||
local item = inventory.getItem(itemName)
|
||||
|
||||
if item.count >= 0 then
|
||||
xPlayer.removeInventoryItem(itemName, count)
|
||||
inventory.addItem(itemName, count)
|
||||
else
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, 'Quantité invalide')
|
||||
end
|
||||
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('added') .. ' x' .. count .. ' ' .. item.label)
|
||||
|
||||
end)
|
||||
if item.count >= 0 then
|
||||
xPlayer.removeInventoryItem(itemName, count)
|
||||
inventory.addItem(itemName, count)
|
||||
else
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, 'Quantité invalide')
|
||||
end
|
||||
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('added') .. ' x' .. count .. ' ' .. item.label)
|
||||
end)
|
||||
end)
|
||||
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:getCategories', function(source, cb)
|
||||
cb(Categories)
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:getCategories', function (source, cb)
|
||||
cb(Categories)
|
||||
end)
|
||||
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:getVehicles', function(source, cb)
|
||||
cb(Vehicles)
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:getVehicles', function (source, cb)
|
||||
cb(Vehicles)
|
||||
end)
|
||||
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:buyVehicle', function(source, cb, vehicleModel)
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:buyVehicle', function (source, cb, vehicleModel)
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
local vehicleData = nil
|
||||
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
local vehicleData = nil
|
||||
|
||||
for i=1, #Vehicles, 1 do
|
||||
if Vehicles[i].model == vehicleModel then
|
||||
vehicleData = Vehicles[i]
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
if xPlayer.get('money') >= vehicleData.price then
|
||||
xPlayer.removeMoney(vehicleData.price)
|
||||
cb(true)
|
||||
else
|
||||
cb(false)
|
||||
end
|
||||
for i=1, #Vehicles, 1 do
|
||||
if Vehicles[i].model == vehicleModel then
|
||||
vehicleData = Vehicles[i]
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
if xPlayer.get('money') >= vehicleData.price then
|
||||
xPlayer.removeMoney(vehicleData.price)
|
||||
cb(true)
|
||||
else
|
||||
cb(false)
|
||||
end
|
||||
end)
|
||||
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:buyVehicleSociety', function(source, cb, society, vehicleModel)
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:buyVehicleSociety', function (source, cb, society, vehicleModel)
|
||||
local vehicleData = nil
|
||||
|
||||
local vehicleData = nil
|
||||
for i=1, #Vehicles, 1 do
|
||||
if Vehicles[i].model == vehicleModel then
|
||||
vehicleData = Vehicles[i]
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
for i=1, #Vehicles, 1 do
|
||||
if Vehicles[i].model == vehicleModel then
|
||||
vehicleData = Vehicles[i]
|
||||
break
|
||||
end
|
||||
end
|
||||
TriggerEvent('esx_addonaccount:getSharedAccount', 'society_' .. society, function (account)
|
||||
if account.money >= vehicleData.price then
|
||||
|
||||
TriggerEvent('esx_addonaccount:getSharedAccount', 'society_' .. society, function(account)
|
||||
account.removeMoney(vehicleData.price)
|
||||
|
||||
if account.money >= vehicleData.price then
|
||||
|
||||
account.removeMoney(vehicleData.price)
|
||||
|
||||
MySQL.Async.execute(
|
||||
'INSERT INTO cardealer_vehicles (vehicle, price) VALUES (@vehicle, @price)',
|
||||
{
|
||||
['@vehicle'] = vehicleData.model,
|
||||
['@price'] = vehicleData.price
|
||||
}
|
||||
)
|
||||
|
||||
cb(true)
|
||||
else
|
||||
cb(false)
|
||||
end
|
||||
|
||||
end)
|
||||
MySQL.Async.execute(
|
||||
'INSERT INTO cardealer_vehicles (vehicle, price) VALUES (@vehicle, @price)',
|
||||
{
|
||||
['@vehicle'] = vehicleData.model,
|
||||
['@price'] = vehicleData.price,
|
||||
}
|
||||
)
|
||||
|
||||
cb(true)
|
||||
else
|
||||
cb(false)
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:getPersonnalVehicles', function(source, cb)
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:getPersonnalVehicles', function (source, cb)
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM owned_vehicles WHERE owner = @owner',
|
||||
{ ['@owner'] = xPlayer.identifier },
|
||||
function (result)
|
||||
local vehicles = {}
|
||||
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM owned_vehicles WHERE owner = @owner',
|
||||
{
|
||||
['@owner'] = xPlayer.identifier
|
||||
},
|
||||
function(result)
|
||||
|
||||
local vehicles = {}
|
||||
|
||||
for i=1, #result, 1 do
|
||||
local vehicleData = json.decode(result[i].vehicle)
|
||||
table.insert(vehicles, vehicleData)
|
||||
end
|
||||
|
||||
cb(vehicles)
|
||||
|
||||
end
|
||||
)
|
||||
for i=1, #result, 1 do
|
||||
local vehicleData = json.decode(result[i].vehicle)
|
||||
table.insert(vehicles, vehicleData)
|
||||
end
|
||||
|
||||
cb(vehicles)
|
||||
end
|
||||
)
|
||||
end)
|
||||
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:getCommercialVehicles', function(source, cb)
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:getCommercialVehicles', function (source, cb)
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM cardealer_vehicles ORDER BY vehicle ASC',
|
||||
{},
|
||||
function (result)
|
||||
local vehicles = {}
|
||||
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM cardealer_vehicles ORDER BY vehicle ASC',
|
||||
{},
|
||||
function(result)
|
||||
|
||||
local vehicles = {}
|
||||
|
||||
for i=1, #result, 1 do
|
||||
table.insert(vehicles, {
|
||||
name = result[i].vehicle,
|
||||
price = result[i].price
|
||||
})
|
||||
end
|
||||
|
||||
cb(vehicles)
|
||||
|
||||
end
|
||||
)
|
||||
for i=1, #result, 1 do
|
||||
table.insert(vehicles, {
|
||||
name = result[i].vehicle,
|
||||
price = result[i].price
|
||||
})
|
||||
end
|
||||
|
||||
cb(vehicles)
|
||||
end
|
||||
)
|
||||
end)
|
||||
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:getRentedVehicles', function(source, cb)
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:getRentedVehicles', function (source, cb)
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM rented_vehicles ORDER BY player_name ASC',
|
||||
{},
|
||||
function (result)
|
||||
local vehicles = {}
|
||||
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM rented_vehicles ORDER BY player_name ASC',
|
||||
{},
|
||||
function(result)
|
||||
|
||||
local vehicles = {}
|
||||
|
||||
for i=1, #result, 1 do
|
||||
table.insert(vehicles, {
|
||||
name = result[i].vehicle,
|
||||
plate = result[i].plate,
|
||||
playerName = result[i].player_name
|
||||
})
|
||||
end
|
||||
|
||||
cb(vehicles)
|
||||
|
||||
end
|
||||
)
|
||||
for i=1, #result, 1 do
|
||||
table.insert(vehicles, {
|
||||
name = result[i].vehicle,
|
||||
plate = result[i].plate,
|
||||
playerName = result[i].player_name
|
||||
})
|
||||
end
|
||||
|
||||
cb(vehicles)
|
||||
end
|
||||
)
|
||||
end)
|
||||
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:giveBackVehicle', function(source, cb, plate)
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:giveBackVehicle', function (source, cb, plate)
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM rented_vehicles WHERE plate = @plate LIMIT 1',
|
||||
{ ['@plate'] = plate },
|
||||
function (result)
|
||||
if #result > 0 then
|
||||
local id = result[1].id
|
||||
local vehicle = result[1].vehicle
|
||||
local plate = result[1].plate
|
||||
local basePrice = result[1].base_price
|
||||
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM rented_vehicles WHERE plate = @plate LIMIT 1',
|
||||
{
|
||||
['@plate'] = plate
|
||||
},
|
||||
function(result)
|
||||
MySQL.Async.execute(
|
||||
'INSERT INTO cardealer_vehicles (vehicle, price) VALUES (@vehicle, @price)',
|
||||
{
|
||||
['@vehicle'] = vehicle,
|
||||
['@price'] = basePrice,
|
||||
}
|
||||
)
|
||||
|
||||
if #result > 0 then
|
||||
MySQL.Async.execute(
|
||||
'DELETE FROM rented_vehicles WHERE id = @id',
|
||||
{ ['@id'] = id }
|
||||
)
|
||||
|
||||
local id = result[1].id
|
||||
local vehicle = result[1].vehicle
|
||||
local plate = result[1].plate
|
||||
local basePrice = result[1].base_price
|
||||
|
||||
MySQL.Async.execute(
|
||||
'INSERT INTO cardealer_vehicles (vehicle, price) VALUES (@vehicle, @price)',
|
||||
{
|
||||
['@vehicle'] = vehicle,
|
||||
['@price'] = basePrice
|
||||
}
|
||||
)
|
||||
|
||||
MySQL.Async.execute(
|
||||
'DELETE FROM rented_vehicles WHERE id = @id',
|
||||
{
|
||||
['@id'] = id
|
||||
}
|
||||
)
|
||||
|
||||
RemoveOwnedVehicle(plate)
|
||||
|
||||
cb(true)
|
||||
|
||||
else
|
||||
cb(false)
|
||||
end
|
||||
|
||||
end
|
||||
)
|
||||
RemoveOwnedVehicle(plate)
|
||||
|
||||
cb(true)
|
||||
else
|
||||
cb(false)
|
||||
end
|
||||
end
|
||||
)
|
||||
end)
|
||||
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:resellVehicle', function(source, cb, plate, price)
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:resellVehicle', function (source, cb, plate, price)
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM rented_vehicles WHERE plate = @plate LIMIT 1',
|
||||
{ ['@plate'] = plate },
|
||||
function (result)
|
||||
if #result > 0 then
|
||||
cb(false)
|
||||
else
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM rented_vehicles WHERE plate = @plate LIMIT 1',
|
||||
{
|
||||
['@plate'] = plate
|
||||
},
|
||||
function(result)
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM owned_vehicles WHERE owner = @owner',
|
||||
{ ['@owner'] = xPlayer.identifier },
|
||||
function (result)
|
||||
local found = false
|
||||
|
||||
if #result > 0 then
|
||||
cb(false)
|
||||
else
|
||||
for i=1, #result, 1 do
|
||||
local vehicleProps = json.decode(result[i].vehicle)
|
||||
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
if vehicleProps.plate == plate then
|
||||
found = true
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM owned_vehicles WHERE owner = @owner',
|
||||
{
|
||||
['@owner'] = xPlayer.identifier
|
||||
},
|
||||
function(result)
|
||||
if found then
|
||||
xPlayer.addMoney(price)
|
||||
RemoveOwnedVehicle(plate)
|
||||
|
||||
local found = false
|
||||
cb(true)
|
||||
else
|
||||
if xPlayer.job.grade_name == 'boss' then
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM owned_vehicles WHERE owner = @owner',
|
||||
{ ['@owner'] = 'society:' .. xPlayer.job.name },
|
||||
function (result)
|
||||
local found = false
|
||||
|
||||
for i=1, #result, 1 do
|
||||
for i=1, #result, 1 do
|
||||
local vehicleProps = json.decode(result[i].vehicle)
|
||||
|
||||
local vehicleProps = json.decode(result[i].vehicle)
|
||||
if vehicleProps.plate == plate then
|
||||
found = true
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
if vehicleProps.plate == plate then
|
||||
found = true
|
||||
break
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
if found then
|
||||
|
||||
xPlayer.addMoney(price)
|
||||
RemoveOwnedVehicle(plate)
|
||||
|
||||
cb(true)
|
||||
|
||||
else
|
||||
|
||||
if xPlayer.job.grade_name == 'boss' then
|
||||
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM owned_vehicles WHERE owner = @owner',
|
||||
{
|
||||
['@owner'] = 'society:' .. xPlayer.job.name
|
||||
},
|
||||
function(result)
|
||||
|
||||
local found = false
|
||||
|
||||
for i=1, #result, 1 do
|
||||
|
||||
local vehicleProps = json.decode(result[i].vehicle)
|
||||
|
||||
if vehicleProps.plate == plate then
|
||||
found = true
|
||||
break
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
if found then
|
||||
|
||||
xPlayer.addMoney(price)
|
||||
RemoveOwnedVehicle(plate)
|
||||
|
||||
cb(true)
|
||||
|
||||
else
|
||||
cb(false)
|
||||
end
|
||||
|
||||
end
|
||||
)
|
||||
|
||||
else
|
||||
cb(false)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
)
|
||||
|
||||
end
|
||||
end
|
||||
)
|
||||
if found then
|
||||
xPlayer.addMoney(price)
|
||||
RemoveOwnedVehicle(plate)
|
||||
|
||||
cb(true)
|
||||
else
|
||||
cb(false)
|
||||
end
|
||||
end
|
||||
)
|
||||
else
|
||||
cb(false)
|
||||
end
|
||||
end
|
||||
end
|
||||
)
|
||||
end
|
||||
end
|
||||
)
|
||||
end)
|
||||
|
||||
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:getStockItems', function(source, cb)
|
||||
|
||||
TriggerEvent('esx_addoninventory:getSharedInventory', 'society_cardealer', function(inventory)
|
||||
cb(inventory.items)
|
||||
end)
|
||||
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:getStockItems', function (source, cb)
|
||||
TriggerEvent('esx_addoninventory:getSharedInventory', 'society_cardealer', function(inventory)
|
||||
cb(inventory.items)
|
||||
end)
|
||||
end)
|
||||
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:getPlayerInventory', function(source, cb)
|
||||
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
local items = xPlayer.inventory
|
||||
|
||||
cb({
|
||||
items = items
|
||||
})
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:getPlayerInventory', function (source, cb)
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
local items = xPlayer.inventory
|
||||
|
||||
cb({ items = items })
|
||||
end)
|
||||
|
||||
if Config.EnablePvCommand then
|
||||
|
||||
TriggerEvent('es:addCommand', 'pv', function(source, args, user)
|
||||
TriggerClientEvent('esx_vehicleshop:openPersonnalVehicleMenu', source)
|
||||
end, {help = _U('leaving')})
|
||||
|
||||
TriggerEvent('es:addCommand', 'pv', function (source, args, user)
|
||||
TriggerClientEvent('esx_vehicleshop:openPersonnalVehicleMenu', source)
|
||||
end, {help = _U('leaving')})
|
||||
end
|
||||
|
||||
function PayRent(d, h, m)
|
||||
function PayRent (d, h, m)
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM users',
|
||||
{},
|
||||
function (_users)
|
||||
local prevMoney = {}
|
||||
local newMoney = {}
|
||||
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM users',
|
||||
{},
|
||||
function(_users)
|
||||
for i=1, #_users, 1 do
|
||||
prevMoney[_users[i].identifier] = _users[i].money
|
||||
newMoney[_users[i].identifier] = _users[i].money
|
||||
end
|
||||
|
||||
local prevMoney = {}
|
||||
local newMoney = {}
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM rented_vehicles',
|
||||
{},
|
||||
function (result)
|
||||
local xPlayers = ESX.GetPlayers()
|
||||
|
||||
for i=1, #_users, 1 do
|
||||
prevMoney[_users[i].identifier] = _users[i].money
|
||||
newMoney[_users[i].identifier] = _users[i].money
|
||||
end
|
||||
for i=1, #result, 1 do
|
||||
local foundPlayer = false
|
||||
local xPlayer = nil
|
||||
|
||||
MySQL.Async.fetchAll(
|
||||
'SELECT * FROM rented_vehicles',
|
||||
{},
|
||||
function(result)
|
||||
for i=1, #xPlayers, 1 do
|
||||
local xPlayer2 = ESX.GetPlayerFromId(xPlayers[i])
|
||||
|
||||
local xPlayers = ESX.GetPlayers()
|
||||
if xPlayer2.identifier == result[i].owner then
|
||||
foundPlayer = true
|
||||
xPlayer = xPlayer2
|
||||
end
|
||||
end
|
||||
|
||||
for i=1, #result, 1 do
|
||||
if foundPlayer then
|
||||
xPlayer.removeMoney(result[i].rent_price)
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('paid_rental') .. result[i].rent_price)
|
||||
else
|
||||
newMoney[result[i].owner] = newMoney[result[i].owner] - result[i].rent_price
|
||||
end
|
||||
|
||||
local foundPlayer = false
|
||||
local xPlayer = nil
|
||||
|
||||
for i=1, #xPlayers, 1 do
|
||||
local xPlayer2 = ESX.GetPlayerFromId(xPlayers[i])
|
||||
if xPlayer2.identifier == result[i].owner then
|
||||
foundPlayer = true
|
||||
xPlayer = xPlayer2
|
||||
end
|
||||
end
|
||||
|
||||
if foundPlayer then
|
||||
|
||||
xPlayer.removeMoney(result[i].rent_price)
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('paid_rental') .. result[i].rent_price)
|
||||
|
||||
else
|
||||
newMoney[result[i].owner] = newMoney[result[i].owner] - result[i].rent_price
|
||||
end
|
||||
|
||||
TriggerEvent('esx_addonaccount:getSharedAccount', 'society_cardealer', function(account)
|
||||
account.addMoney(result[i].rent_price)
|
||||
end)
|
||||
|
||||
end
|
||||
|
||||
for k,v in pairs(prevMoney) do
|
||||
if v ~= newMoney[k] then
|
||||
|
||||
MySQL.Async.execute(
|
||||
'UPDATE users SET money = @money WHERE identifier = @identifier',
|
||||
{
|
||||
['@money'] = newMoney[k],
|
||||
['@identifier'] = k
|
||||
}
|
||||
)
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
)
|
||||
|
||||
end
|
||||
)
|
||||
TriggerEvent('esx_addonaccount:getSharedAccount', 'society_cardealer', function(account)
|
||||
account.addMoney(result[i].rent_price)
|
||||
end)
|
||||
end
|
||||
|
||||
for k,v in pairs(prevMoney) do
|
||||
if v ~= newMoney[k] then
|
||||
MySQL.Async.execute(
|
||||
'UPDATE users SET money = @money WHERE identifier = @identifier',
|
||||
{
|
||||
['@money'] = newMoney[k],
|
||||
['@identifier'] = k,
|
||||
}
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
)
|
||||
end
|
||||
)
|
||||
end
|
||||
|
||||
TriggerEvent('cron:runAt', 22, 00, PayRent)
|
||||
|
||||
Reference in New Issue
Block a user