Hi,
I wanted to use this script:
GitHub - renzuzu/renzu_tuners: Fivem Advanced Vehicle System. Including Mileages , Degrations ,Multiple Engine Parts Variation like Racing Pistons , Tuning and more.
When putting a car on the dyno, it doesn’t work and the console says the following things:
1: @renzu_tuners/client/function/tires.lua:24: bad argument #1 to ‘for iterator’ (table expected, got nil)
I tested some things and it seems like it can’t read the vales from the config.lua.
In the for loop. it is trying to do:
for k,tiredata in pairs(config.tire) do
It says config.tire is nil eventhough it shouldn’t
I’ll upload the full scripts.
How can I fix this?
config.lua (51.3 KB)
fxmanifest.lua (612 Bytes)
tires.lua (4.9 KB)
EDIT: It does work when I put the table from config.lua into tires.lua and rename it. But I would have to do that for multiple files and multiple tables because other scripts also can’t read the variables from config.lua so a fix for this would be better