awithaaa / qb-kfc

Simple KFC Job for your FiveM Server By !ViDu
18 stars 8 forks source link

Depreciated function #4

Open IgnorantDuck opened 1 year ago

IgnorantDuck commented 1 year ago

When attempting to craft/make any of the kfc items this pops on my server console

[ script:qb-inventory] QBCore:HasItem is deprecated, please use QBCore.Functions.HasItem, it can be used on both server- and client-side and uses the same arguments. [ script:qb-core] nil triggered QBCore:Server:RemoveItem by ID 1 for 1 kfc-potato. This event is deprecated due to exploitation, and will be removed soon. Adjust your events accordingly to do this server side with player functions. [ script:qb-core] nil triggered QBCore:Server:AddItem by ID 1 for 4 kfc-fries. This event is deprecated due to exploitation, and will be removed soon. Adjust your events accordingly to do this server side with player functions.

binaryc0ding commented 1 year ago

I have fixed this. Needs to be done server side now instead of client side.