Skip to main content
Discovery icon for Quasar Store Discord server

Quasar Store

7,635 Online
32,037 Members
🆘・support-chat3 people

adding hunger/thirst to items

To make items affect hunger or thirst in `ox_inventory`, add a `client = { status = { hunger = X, thirst = Y } }` block to the item's definition.

  • Item definitions in `ox_inventory/data/items.lua` need a `client` table with a `status` field to apply hunger or thirst effects.
  • The `status` field should specify `hunger` or `thirst` (or both) with a numerical value representing the amount restored, e.g., `hunger = 200000`.
  • Other optional client-side properties include animations (`anim`), prop models to display (`prop`), usage time (`usetime`), cancelability (`cancel`), and a notification message (`notification`).
  • A common mistake is omitting the `status = { hunger = X, thirst = Y }` part, which prevents the item from affecting player stats.
Summarized from recent messages, might be inaccurate

More conversations

🆘・support-chat

configuring clothing categories for players

🆘・support-chat

MLO creator permissions

Talk, Play, &
Hang Out

Find your space to hang out, discuss the latest updates with the party chat, and see who's down to join your next match.
Get App