Standalone

🛠️ Standalone Usage

If you're not using any of the pre-configured inventories (ox, tgiann, codem, qbcore, esx), you can still use this pack in standalone mode with simple triggers or exports.

⚙️ Configuration

In your config.lua file, set the inventory mode to:

Config.Inventory = "standalone"

This enables support for custom or menu-based inventories using basic events.


Call this event from your inventory logic when a player uses an item:

lTriggerEvent("camsur_inventory:useItemStandalone", "bandagearm")
TriggerEvent("camsur_inventory:useItemStandalone", "bandageleg")
TriggerEvent("camsur_inventory:useItemStandalone", "syringe")
TriggerEvent("camsur_inventory:useItemStandalone", "pills")

No extra code is needed. The system handles the animation, sound, cooldown, and healing automatically.


🧰 Option 2 – Using Exports (if calling from another script/menu)

You can also use exports directly in your code to manually trigger the effect:

exports["emergency_pack"]:useBandagearm()
exports["emergency_pack"]:useBandageleg()
exports["emergency_pack"]:useSyringe()
exports["emergency_pack"]:usePills()

⚠️ Important

If your inventory does not automatically remove the item when used, you will need to remove it manually in your logic.

Last updated