Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
C:/tmp/DAYZ/scripts_v1.24.157551/scripts/game/systems/inventory/inventoryslots.c

int slot = InventorySlots.GetSlotIdFromString("FireWood"); if (slot != InventorySlots.INVALID)

@NOTE the example looks in the DZ/data/config.cpp and searches for class entry Slot_##slot_name class Slot_Firewood { whatever };

i.e. it does NOT look at name= or displayName= attributes of the entry!

{
const int COUNT;
const int INVALID;
#ifdef DIAG_DEVELOPER
private void InventorySlots() {}
private void ~InventorySlots() {}
#else
void InventorySlots() {}
void ~InventorySlots() {}
#endif
static proto native int GetSlotIdFromString(string slot_name);
static proto native owned string GetSlotName(int id);
static proto native owned string GetSlotDisplayName(int id);
static proto native bool IsSlotIdValid(int slotId);
static proto native int GetStackMaxForSlotId(int slot_Id);
static proto native bool GetShowForSlotId(int slot_Id);
static proto native bool GetAutoAttachForSlotId(int slot_Id);
static proto bool GetBoneNameForSlotId(int slot_Id, out string bone_name);
static proto bool GetSelectionForSlotId(int slot_Id, out string selection);
//static proto native int GetBoneIndexForSlotId (int slot_Id);
};
InventorySlots
provides access to slot configuration
Definition: inventoryslots.c:5