Jump to content

How i can fix containers.


Recommended Posts

i create containers widgets all work fine but when i try eat food inside game crash [00:01:06]: [string "scripts/components/container_replica.lua"]:209: attempt to index field 'inventoryitem' (a nil value) writing crash with container replica but i use in script 

local function OnEntityReplicated(inst)
        if inst.replica.container ~= nil then
            inst.replica.container:WidgetSetup(inst.prefab)
        end
end

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
 Share

×
  • Create New...