Constant-Development/cr-storeextras

errors

Andyauk opened this issue · 4 comments

red sticks to hand still

orange gives errors line 21 of client consumables
gerServerEvent("QBCore:Server:SetMetaData", "thirst", QBCore.Functions.GetPlayerData().metadata["thirst"] + ConsumeablesSlushy[itemName])

with latest version

You must have missed "Trig" when copying the Snippet.

Try:

TriggerServerEvent("QBCore:Server:SetMetaData", "thirst", QBCore.Functions.GetPlayerData().metadata["thirst"] + ConsumeablesSlushy[itemName])

i noticed your missing ConsumeablesSlushy = { for orange

Ahh, okok I notice what you're saying now. Yes, that is missing - My bad on that one.

I've pushed the 'orangeslushy' being inside of the 'ConsumablesSlushy = {'