Sleepless-Development / sleepless_inventory_addons

GNU General Public License v3.0
38 stars 18 forks source link

Script Error : error object is not a string #10

Closed Beta-Bella closed 5 months ago

Beta-Bella commented 5 months ago

Hi dear!

Ive installed your source today and everything works as expected. There are no underlying breaking issues. I just saw, that when we finished a craft ( item a + item b) the result is fine, BUT - we get a serverconsole error - And i was wondering if theres a way to fix it ( i know this is just complaining on a highlevel, but i really dont like the errors plopping up hehe)

We have ox_lib 3.22.1, inventory 2.40.1 ESX Framework, build7969.

Thank you in advance. Bella Bild_2024-06-13_161132511

Demigod916 commented 5 months ago

@Beta-Bella hello, can i see your config table for crafting? i cant actually reproduce this error

Beta-Bella commented 5 months ago

Sure i will add it here :

['plastic_bottle waterbucket_full'] = {
    duration = 2000,
    client = {
        before = function(recipeData)
        end,
        after = function(recipeData)
        end,
    },
    server = {
        before = function(recipeData)
        end,
        after = function(recipeData)
        end,
    },
    costs = {
        ['plastic_bottle'] = { need = 5, remove = true },
        ['waterbucket_full'] = { need = 1, remove = true },
    },
    result = {
        { name = 'water', amount = 5 },
        { name = 'bucket', amount = 1 }
    },
},

This is one of the recipies, as told - we get the stuff thats supposed to come out it just throws that error.

Demigod916 commented 5 months ago

this should be fixed in the latest commit. im going to do some work on backItems too before i make a release.

Beta-Bella commented 5 months ago

Thank you so much! <3