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 MrNewb_Yoga.
Dependencies
Newb_Bridge, ox_lib, server artifact /server:6116 or newer plus OneSync, your framework (stress metadata), and your inventory. World mats and the shop ped use target / AddInteraction. oxmysql is not required.
Vanilla yoga mat props in Config.Mats are usable immediately. Placeable items and the shop are extra.
Add items and images
Required items (must match Config.PlaceableMats): yoga_mat, yoga_mat_blue, yoga_mat_red.
Paste from Item setup. Copy PNGs from [INSTALL]/imgs/ into:
| Inventory | Image folder |
|---|---|
| ox_inventory | ox_inventory/web/images/ |
| qb-inventory / ps-inventory | html/images/ |
| one_inventory | one_inventory/web/images/ |
Do not add server.export on ox_inventory items. Use is registered with bridge.framework.registerItemUse. Omit consume on the item defs. Gallery: Item images.
Configure
Edit configs/config.lua. Field tables: MrNewbYoga.
Config.Mats— world prop hashes you can targetConfig.MatSpots— optional spawned mats (shipped commented out). Uncommentvector4rows or add your ownConfig.RestoreHealth/Config.StressRelief— rewards on a valid completeConfig.Music.enabled— GTA yoga audioConfig.PlaceableMats— item name → mat modelConfig.Placement—MaxDistance(8.0),MaxPerPlayer(3)Config.Shop— ped atvec4(-1111.2534, -1662.1963, 4.3570, 127.8968).Enabled = falseskips itConfig.ShopItems— shop stock
Labels: locales/en.json (and the other locale files). HUD / extra XP: resource/open/client/open.lua and resource/open/server/open.lua.
Add to server.cfg
Swap qbx_core / ox_inventory for whatever you actually run.
ensure ox_lib
ensure qbx_core
ensure ox_inventory
ensure Newb_Bridge
ensure MrNewb_YogaRestart the server
Restart after config, locale, or item changes. Placed mats are in-memory and clear on restart. No exports, no commands, no SQL.