swkeep / keep-companion

Qbcore pet system
GNU General Public License v3.0
137 stars 57 forks source link

liter error #23

Closed Andyauk closed 2 years ago

Andyauk commented 2 years ago
[script:keep-companio] SCRIPT ERROR: @keep-companion/server/server.lua:266: attempt to compare number with nil
[script:keep-companio] SCRIPT ERROR: @keep-companion/server/server.lua:266: attempt to compare number with nil
    if type(item.info) == "table" then
        if item.info.liter > max_c then
            TriggerClientEvent('QBCore:Notify', source, 'could not do that already reached max capacity', 'error', 2500)
            return
        elseif item.info.liter == max_c then
            amount = max_c
swkeep commented 2 years ago

Hi, i have a question about the issue. before this error occurs did this notification "Washing new water bottle!" appear in your game?

Andyauk commented 2 years ago

Hi, i have a question about the issue. before this error occurs did this notification "Washing new water bottle!" appear in your game?

yes i believe it did. i went to get a bottle. and i clicked don it i think.

smouj013 commented 2 years ago

https://github.com/swkeep/keep-companion/issues/25