qbcore-framework / qb-clothing

Clothing Script Used With QB-Core :shirt:
GNU General Public License v3.0
33 stars 232 forks source link

Clothing Police Can‘t open #164

Closed CHAlessio closed 1 year ago

CHAlessio commented 1 year ago

If I want to open the shop via qb target for the PD I get this error

SCRIPT ERROR: @qb-clothing/client/main.lua:1207: attempt to index a nil value (upvalue 'data')

i have nothing changed only this error comming up

cammygames commented 1 year ago

I managed to get mine working by editing these 2 lines

https://github.com/qbcore-framework/qb-clothing/blob/main/client/main.lua#L1911 https://github.com/qbcore-framework/qb-clothing/blob/main/client/main.lua#L1917

getOutfits(gradeLevel, Config.Outfits[v.requiredJob])

erikmeyer08 commented 1 year ago

works for me!

Asogaming commented 1 year ago

works for me!

What changes did you make to those lines?

DinoCROTH commented 1 year ago

works for me!

What changes did you make to those lines?

getOutfits(gradeLevel, Config.Outfits[v.requiredJob]) is wrong. Outfits --->ClothingRooms

wendelbb commented 1 year ago

i have tried 3 different ways and i still get the same error as above... i am have added a custom job and i added the clothingroom at the job location.

getOutfits(gradeLevel, Config.Outfits[v.requiredJob]) < ---- broken for me

getOutfits(gradeLevel, Config.ClothingRooms[v.requiredJob]) <---- broken as well

and it doesnt work if i have both in there...

i get the error no matter how i edit the code

SCRIPT ERROR: @qb-clothing/client/main.lua:1207: attempt to index a nil value (upvalue 'data')

MentalIllness commented 1 year ago

This issue should be fixed in the next update ( ETA: 24 hours from now )