Skip to main content
Triggered BEFORE an item is used (before consume, animations, and delays). This hook can cancel item usage. Register with registerHook using the event name onPreUseItem. Execution order: after STATIC_ITEM.canUse and oxServerExport 'usingItem', before consume.

Payload

This hook can prevent item usage by returning false. Useful for global item usage restrictions (e.g., handcuffed players, vehicle restrictions, zone restrictions).

Examples

See Hooks overview for the registerHook API, available filters, and return-value behavior.