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
Block item usage when handcuffed
Block item usage when handcuffed
Block food usage in vehicles
Block food usage in vehicles
registerHook API, available filters, and return-value behavior.