Skip to content

ax.item

Item management system for creating, storing, and managing game items.

Documented functions: 1  ·  Realm: shared

Functions


ax.item:Register(className, baseName, bIsBase, bAddDefaultActions)

Registers an item definition programmatically without requiring a file.

Realm: shared

Parameters

Name Type Description
className string The unique class identifier for the item
baseName string\|nil The base item class to inherit from
bIsBase boolean Whether this item is a base item
bAddDefaultActions boolean Whether to add default take/drop actions (default true)

Returns

  • table: The item definition table, or nil on failure

Source: gamemode/framework/libraries/sh_item.lua:433