• Major Problems with the weapons table - functions returning empty or nil
    2 replies, posted
Newest update must have accidentally screwed with something. I am no longer getting returns when I call weapons.Get() or weapons.GetStored(), and I get an empty return with weapons.GetList() in places where the weapons have already been loaded (in my case: InitPostEntity). I can later call weapons.GetList() in server console and get a table return, but Get and GetStored continue to return nothing. Here's my server console output in sandbox: ] lua_run print( weapons ) > print( weapons )... table: 0x175ad110 ] lua_run PrintTable( weapons ) > PrintTable( weapons )... Get = function: 0x175ae190 GetList = function: 0x175ae1d0 GetStored = function: 0x175ae1b0 IsBasedOn = function: 0x175ad1a0 OnLoaded = function: 0x175ae170 Register = function: 0x175acab8 _M = table: 0x175ad110 _NAME = weapons _PACKAGE = ] lua_run print( weapons.Get() ) > print( weapons.Get() )... nil ] lua_run print( weapons.GetStored() ) > print( weapons.GetStored() )... nil ] lua_run print( weapons.GetList() ) > print( weapons.GetList() )... table: 0x22fe7fa0 I don't think this is a problem on my end.
You are calling weapons.GetStored() and weapons.Get() without any arguments. I cannot confirm any issues with weapons.GetList()
Oh. Right. I'm a dumbass. I'm still running into problems with weapons.GetList(), but I that may be on me.
Sorry, you need to Log In to post a reply to this thread.