#Starting vehicle models with numbers.

1 messages · Page 1 of 1 (latest)

golden marsh
#

We added some new vehicles to our vehicles.lua that starts with numbers. Example :
```204sA85 = {
name = '204 S A85',
brand = '204',
model = '204',
price = 80000,
category = 'sports',
hash = 204sA85,
}

When we do this it breaks the framework. We can't change much as these are locked vehicles. We are switching away from qbcore and didn't have this issue there.

Is there a work around this?
ripe crest
#

you are hasing the hash

#

oh nvm

#

its just the name

#

thats just due to how lua works

#

for that

#

use

#

["204sA85"] = {

#

lua doesnt like it otherwise

golden marsh
#

I didn't think of that. Thanks I will check it

#

Perfect.. thanks for the help that fixed my issue.

ripe crest
#

no problem 🙂

gusty arch
#

i don wanna be

#

a big guy

#

yk

#

buuut

#

if u use qbox

#

just use my handy thing
#1278729402439565436

#

@golden marsh just a tip

#

generates those

#

automatically

#

in a file

#

from ur stream files

#

u just change prices and in some places "categories"

golden marsh
#

Thanks everyone I will look at the above links and bookmark those