Configuration
🧩 Choose your Inventory System
In config.lua
, set the inventory type you're using:
Config.Inventory = "ox" -- "ox", "tgiann", "codem", or "standalone"
If you're using a different inventory system, set "standalone"
and use the provided event:
TriggerEvent("camsur_inventory:useItemStandalone", itemName)
In the Config.Action, you can customize all your items
✅ General Options
enabled
boolean
Enables or disables the item. If set to false
, the item will do nothing.
cooldown
number
Time in seconds before the player can use the same item again.
cooldownMessage
string
(Optional) Custom message shown if the player tries to use the item during cooldown.
healAmount
number
The amount of HP the item restores. Based on a 0–100 HP system.
maxHealthTarget
number
(Optional) Max HP the player can have to use this item. Above this, the item is blocked and not consumed.
gradualHeal
boolean
If true
, healing is done progressively (one point at a time). If false
, healing is instant.
healDelay
number
If gradualHeal
is true: time in milliseconds between each health point. Ignored if gradualHeal
is false.=
🔊 Sound Options
enableSound
boolean
If true
, plays a sound when the item is used.
sound.name
string
Name of the .ogg
sound file (must be included in your resource).
sound.volume
number
Volume of the sound (from 0.0
to 1.0
).
🕺 Animation Options
animFlag
number
Controls if the player can move during the animation:
0
= frozen
48
= can move (walk).
Last updated