benilla-re systems structs docs

Script::IsInventoryItemLocked

function · ui · orchestration

Address
0x4c8e60 · 157 bytes, up to 0x4c8efc
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

Calls and jumps by a bare address, from tables/calls.tsv.