Items do nothing when used#
The item names in config/main.lua must match the names in ox_inventory/data/items.lua. Add the items from install/items.lua.
Coffee has no effect#
The item must be in Config.Caffeine.items. With registerItems = 'auto', this resource registers coffee and energy drinks only when neither qbx_consumables nor the Config.Integrations.consumables resource exists. If you run a consumables script, add the Caffeine hook from the Examples page or set registerItems = true.
Adrenaline says there is no way to revive#
No medical resource is running and Config.Integrations.reviveEvent is nil. Set Config.Integrations.ambulance or reviveEvent for your setup. Adrenaline checks for a revive provider before the item is taken, and gives the item back if the revive fails.
Infection never happens#
Infection from untreated bleeding needs a medical resource with the GetInjuries(src) export. Set Config.Integrations.ambulance to it.
No hangover#
The server must have seen Config.Hangover.drinks calls to Drank inside the window, and the sober report must come with a peak at or above Config.Hangover.heavyLevel. Check that your consumables script sends both.
A cigarette says "You need a lighter."#
The player needs the item named in Config.Cigarette.lighter in their inventory.
An icon is blank in a toast#
The icon font only holds the icons used by Config.Effects. If you add an effect with a new ti- icon, add it to the subset in html/fonts.
The screen stays tinted#
Restart the resource. It clears the screen effects on stop and on logout.
Buff and Debuff squares do not show#
This resource only writes the hud_buff and hud_debuff state bags. Your HUD has to read them.
Known limits#
- Effects that run on the client (stamina, sedated movement, steroid damage) can be tampered with by a modified client. Timers and saved state are server owned.
- The
greenedouteffect has no trigger of its own. A drug or alcohol script starts it withApply(src, 'greenedout')on the server. - Text is English by default. Translate it in
Config.Textand in theup,downandfixlines ofConfig.Effects.