vRP-framework / vRP

FiveM (http://fivem.net) RP addon/framework
https://vrp-framework.github.io/vRP
MIT License
292 stars 190 forks source link

[FXServer] Adding items to vehicle chest, nil value where table should exist. #298

Closed Seenko closed 7 years ago

Seenko commented 7 years ago

Just when I was going about to check what was wrong with chests I came here and checked, you already made a fix for it, kinda worked in my case, don't know if this is unique to me.

When going to add items to the vehicle chest and with the updated inventory.lua file, this error: inventory.lua:381: bad argument #1 to 'pairs' (table expected, got nil)

I suspect something is wrong with data.inventory in the line 487 local submenu = build_itemlist_menu(lang.inventory.chest.put.title(), data.inventory, cb_put)

It passes the first verification at line 400 so data.inventory is not nil.

I'm going to have a look at it tomorrow to see if I can fix it, but better register an Issue for now.

ImagicTheCat commented 7 years ago

It is exactly what I fixed, so I have no idea what is wrong with your scripts. More details needed to reproduce the issue.

Seenko commented 7 years ago

After doing a git pull 3 more times the issue got fixed. I think git hates me.