Originally Posted by UnDead 0rbit
UseItem() claims to be protected in the Api, yet ingame im getting an attempt to use a private function error. is the api (wiki) out of date and this is changed or and I doing something wrong?
error:
Attempt to access a private function 'UseItem' from insecure code. The callstack became untrusted 2 stack frame(s) from the top.
|
Lua Code:
if CanUseItem(bagId, slotIndex) then
-- UseItem is protected, so CallSecureProtected is used to make the call
local success = CallSecureProtected("UseItem", bagId, slotIndex)
return success
end