BPExchange
Blueprint Exchange Program. Players hand a clerk a set number of lower rarity blueprint crates and get back random crates of a higher rarity.
It builds on GR1M_Craft's rarity crates (bp_common, bp_uncommon, bp_rare, bp_legendary). The exchange only moves crate items. Using the crate you get back is what rolls a new schematic, through GR1M_Craft's own bp_item export, so it still only rolls schematics the player doesn't know yet.
#Default trades (config.lua Config.Exchanges)
| Hand in | Get back (per trade) |
|---|---|
| 8 Common | 1 crate: Uncommon 85%, Rare 13%, Legendary 2% |
| 8 Uncommon | 1 crate: Rare 90%, Legendary 10% |
| 8 Rare | 1 Legendary |
Every trade rolls on its own. Odds may only name rarities above the one handed in; anything else is dropped at boot with a console warning. Up to Config.MaxTradesPerVisit trades at once, Config.Cooldown seconds apart.
#Install
ensure GR1M_BPExchangeafterox_lib,ox_inventory,ox_targetandGR1M_Craft.- Optional ace:
add_ace group.admin gr1mbpx.admin allow(thecommandace also works). - In game, stand where the clerk should be, face the way they should face, and run
/bpxplace.
#Commands (admin)
| Command | What it does |
|---|---|
/bpxplace | Adds a desk (clerk ped + blip) where you stand. Saved in the resource KVP. |
/bpxremove | Removes the placed desk within 5 m. Desks in Config.Locations must be removed in config. |
/bpxlist | Prints every desk as a vector4 in the server console. |
#Safety
The server checks the exchange exists, the trade count, the cooldown, that the player is within Config.MaxDistance of a desk and holds enough crates. It rolls first, takes the crates, then gives the results. If any give fails (full pockets) it takes back what it gave and returns the crates.
GR1M