qbcore-redm-framework / qbr-clothing

Clothing for RedM QBCore
GNU General Public License v3.0
4 stars 18 forks source link

table expected, got nil #39

Closed Andyauk closed 9 months ago

Andyauk commented 12 months ago

SCRIPT ERROR: @qbr-clothing/client/main.lua:49: bad argument #1 to 'for iterator' (table expected, got nil)

seems to be trying to find cloth_hashnames as line 49 is `for , v in pairs(cloth_hash_names) do` in the past it had that name in the file but now its not.

DosKit commented 12 months ago

Thanks for pointing that out that was a oversight. that whole section can be removed. https://github.com/qbcore-redm-framework/qbr-clothing/blob/92a572793b06aade60c03a0942b051bfbc20feba/client/main.lua#L48-L82

I did a PR on it should be fixed in a few days.

Andyauk commented 12 months ago

Thanks for pointing that out that was a oversight. that whole section can be removed.

https://github.com/qbcore-redm-framework/qbr-clothing/blob/92a572793b06aade60c03a0942b051bfbc20feba/client/main.lua#L48-L82

I did a PR on it should be fixed in a few days.

thanks