SpookySeasonInstallation

Installation

⚠️

Start this after ox_lib, your framework, your inventory, and Newb_Bridge. The bridge auto-detects running resources; if this script starts first, detection can miss them. Keep the folder named MrNewbsSpookySeason.

Dependencies

Newb_Bridge, ox_lib, framework + inventory + target via the bridge. Server artifact /server:6116 or newer, plus OneSync.

Ghost hunts also need pengu_digiscanner. Without it, pumpkins, graves, trick-or-treat, shops, and crates still run.

Add items and images

Paste from Item setup. Copy PNGs from [INSTALL]/images/ into:

InventoryImage folder
ox_inventoryox_inventory/web/images/
qb-inventory / ps-inventoryhtml/images/
one_inventoryone_inventory/web/images/

Required names: event_token, candy_corn, chocolate_bar, pumpkin_basket, rotten_casket. Also register id_card if grave / rotten-casket loot should grant it.

Do not add server.export on ox_inventory items. pumpkin_basket and rotten_casket register with bridge.framework.registerItemUse.

Configure

FileContents
configs/config.luaConfig.WeatherFeature, Config.TrickOrTreatBlips, Config.Shops, Config.Decorations
configs/sv_config.luaServer-only. Config.LootTypes, Config.Pumpkins, Config.Graves, Config.GhostHunts, Config.TrickOrTreat

Shop prices are event_token counts. Loot cash rows pay the cash account. Field tables: MrNewbSpookySeason.

Add to server.cfg

Swap qbx_core / ox_inventory for whatever you actually run. If you use ghost hunts, start pengu_digiscanner before this resource.

ensure ox_lib
ensure qbx_core
ensure ox_inventory
ensure Newb_Bridge
ensure pengu_digiscanner
ensure MrNewbsSpookySeason

Restart the server

Restart after config or item changes.