renzuzu/renzu_projectcars

Script error Attempt to index a nil value (global 'cats')

Yecoyz opened this issue · 5 comments

Yecoyz commented

Got script error when using the blueprint on QBCore

Most of my server is QBCore normal.
client/client.lua:1152: Attempt to index a nil value (global 'cats')

bild
bild

Bro i got the same problem, the only thing that works is the spray cans
I cant figure out how to fix it

Probably need more information such as How is your config_vehicles.lua set up, and did you modify anything in the client.lua? I would try a fresh install and make sure your qbcore files are updated and that you are running the correct game version. I have installed this and only minor issues which I was able to fix.

Figured it out, it has to do when you are using a non-meta inventory system.

After line 1147 "local Options = {}"
Add "local cats = {}"

Also just found another issue: Client.lua line 1180
Current: TriggerEvent('renzu_projectcars:spawnshell',v)
Should Be: TriggerServerEvent('renzu_projectcars:spawnshell',v)

So far I have gotten everything to work with Non-Meta inventory system except for the store. I might tackle that later if you need help, We arent using it so I dont really need to look at it...we will be crafting parts instead of buying them