benilla-re systems structs docs

GetContainerGuid

function · ui · primitive

Address
0x4f93e0 · 47 bytes, up to 0x4f940e
Signature
uint64_t __fastcall (int32_t index)
Meaning
Returns the cached GUID of bag index 0 to 9, 0 outside it or for bank bags with the bank closed
Confidence
verified, proof one
Finding
ui/portraittextures#bag-portrait

Finding: Bag portrait in ui: portrait textures

SetBagPortaitTexture(texture, id) (the client's spelling) is 0x4fa4f0. Argument 1 must be a texture table, else it raises the frame script object errors; argument 2 must be a number, else Usage: SetBagPortaitTexture(texture, slot). The id is truncated and reduced by 1. A result below 0 (id 0, the backpack, and the keyring) returns without touching the texture; 10 or more raises Invalid slot in SetBagPortaitTexture. Otherwise the texture is cleared, and the container at cache index id - 1 (0x4f93e0) is resolved with mask 4. An empty slot, a missing container or a closed bank (ids 5 to 10) leaves the texture cleared; else the path <StringLookups row 3>\<InventoryIcon_1> goes to the sink. Nothing is returned.

The derivation is in the doc.

Callers 5

Callees 0

None by a direct call or jump.

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