Jump to content

command to change stats for food crash server with caves

Recommended Posts

hello I am using a code to change the statistics of an edible item but on a server when crafting the item it crashes


the code is this  =


 if GLOBAL.TheNet and GLOBAL.TheNet:GetIsServer() then
        AddPrefabPostInit("masamaligna", function(inst)
        if GetPlayer().prefab == "red1500" then
            inst.components.edible.foodtype = MONSTERMEAT
            inst.components.edible.healthvalue = 90


Does anyone know how it can be fixed? please
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...