Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant get contracts #60

Open
Djukkiller3 opened this issue Nov 9, 2023 · 3 comments
Open

Cant get contracts #60

Djukkiller3 opened this issue Nov 9, 2023 · 3 comments

Comments

@Djukkiller3
Copy link

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.

@Djukkiller3
Copy link
Author

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

@Visankata
Copy link

Remove }, and will work

@Tayday937
Copy link

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'},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants