The post I made in May is slightly outdated.
Since then, I’ve discovered the proper syntax which must be used within the __resource.lua
file in order to ensure the proper functionality of each vehicle add-on. On line 15 of your own __resource.lua
file, you have an extra comma as the final character, which should not actually be present. In your subsequent post, you can actually see that the connection error details in FiveM mention the unexpected character on line 15 of your __resource.lua
file.
You have forward slashes preceding each path within your __resource.lua
file as well, and you do not actually want those to be present. Your vehicle add-on subfolders should actually be contained within a subfolder called /data/
as shown, and not exposed within the main resource folder itself. Your model and texture dictionary files are stored in a subfolder called /stream/
as well, which is also shown.