Shop & levels editor
Editing the shop and the level track in game.
Admins with the filo_rewards.admin ace (Config.ShopEditor.ace) see EDIT SHOP in the Shop tab
and EDIT LEVELS in the Rewards tab. Changes apply immediately for every open menu, and each one is
logged to the server console with the admin's name.
Shop
Shop items are stored in the filo_rewards_shop table. It's filled from Config.Shop on the first
start, and after that Config.Shop is ignored. To re-seed it, empty the table and restart the resource.
In the editor you can:
- Add an item.
- Edit an item's type, name, label, price, count, description, image, folder, order, LIMITED badge and hidden flag.
- Group items into folders. Items with the same Folder name (for example
Tier 1) show as one tile with a preview, the item count and the lowest price. Search still finds items inside folders. - Delete an item.
Rules:
- An item's ID can't change once it exists, because queued gifts refer to it.
- Hidden items can't be bought or gifted, but gifts already queued for them are still delivered.
- An item can't be deleted while gifts for it are queued. Hide it instead.
- Item and weapon names are checked against ox_inventory, and vehicle models against qbx_core's vehicle list.
Properties
Add an item with type Property and enter the nolag_properties ID.
- The listing can only be saved while the property has no owner or tenant.
- On purchase it's handed over with
exports.nolag_properties:TransferProperty, and the listing hides itself. - If the property was taken in the meantime, or nolag_properties is down, the player gets their coins back.
- Properties can't be gifted.
Lucky Wheel spins
Add an item with type Lucky Wheel spin and set Spins (1 to 100) per purchase.
- Spins go to the character's bonus spin balance in filo_casino (
exports.filo_casino:AddWheelSpins). - The free daily spin is always used first. Bonus spins never cost the wheel's spin price.
- If filo_casino isn't running, purchases are refunded and gifts stay queued.
Properties and spins have no stock image and show a HOME or SPIN tile. Set a custom image link to replace it.
Levels
- Level curve: max level (2 to 500), base XP and exponent, with a preview of the XP per level and the total to max.
- Per level: the XP needed from the previous level, and the reward (cash, coins, a vehicle and up to 10 items).
Edits are stored as overrides on top of the config (filo_rewards_settings and filo_rewards_levels).
USE CURVE and USE CONFIG remove an override.
- Levels are worked out from total XP, so changing requirements moves players' levels right away.
- Claimed rewards stay claimed. Nobody can claim the same level twice.
- Lowering the max level doesn't take XP away.