Ejiy/jl-laptop

Cant get contracts

Opened this issue · 3 comments

So ive got no errors in the F8, Also if i give myself a boost todo it works with the command, Just doesnt show up.
ive put the cars in qb-core/shared/vehicles and in local car area.

For example:
local cars = {
["D"] = {
{['model'] = 'asbo',
['name'] = 'Asbo',
['brand'] = 'Maxwell',
['price'] = 4000,
['categoryLabel'] = 'Compacts',
['shop'] = 'pdm',
["tier"] = "D",},

	{['model'] = 'blista',        
	['name'] = 'Blista',                        
	['brand'] = 'Dinka',           
	['price'] = 13000,   
	['categoryLabel'] = 'Compacts',        
	['shop'] = 'pdm',
	["tier"] = "D",},
	
	{['model'] = 'dilettante',    
	['name'] = 'Dilettante',                    
	['brand'] = 'Karin',           
	['price'] = 9000,    
	['categoryLabel'] = 'Compacts',        
	['shop'] = 'pdm',
	["tier"] = "D",},
},

I just don't know what i've done wrong.

i found this in console
SCRIPT ERROR: @jl-laptop/server/boosting.lua:876: attempt to index a nil value (field '?')

Remove }, and will work

not getting a error code but i cant get contracts to show.....this is my layot......local cars = {
["D"] = { model = 'streetz28', name = 'streetz28', brand = 'streetz28', price = 50000, category = 'drag', type = 'automobile', shop = 'pdm', tier = 'D'},
{ model = 'ASMerc', name = 'ASMerc', brand = 'ASMerc', price = 78000, category = 'import', type = 'automobile', shop = 'pdm', tier = 'D'},