Script::IsInventoryItemLocked
function · ui · orchestration
- Address
0x4c8e60· 157 bytes, up to0x4c8efc- Signature
int __fastcall (lua_State *L)- Meaning
- Returns 1 when the item at an inventory slot has its lock bit set, else nil
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/inventory#item-lock-query
Finding: Item lock query in ui: inventory queries and alerts
IsInventoryItemLocked(slot) is 0x4c8e60, with the slot alone as argument 1. A refused slot raises
Invalid inventory slot in IsInventoryItemLocked. The ammo slot, no active player and an empty slot return nil;
otherwise it returns the number 1 when bit 0 of [item+0x314] is set and nil when it is clear.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 7
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- ReadInventorySlotArg ui
- GetItemInSlot objectlayer
- lua_pushnil lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.