Scripts
Mailbox Robbery
A free, open-source mailbox robbery. Lightweight, synced between players and easy to make your own.
- Requires
- ox_lib
- Frameworks
- Any, custom frameworks can be added
- Target & inventory
- ox or qb target; ox, qb or ps inventory; or your own
- Dispatch
- tk, ps, cd or fd, or your own
Free and open source. You can also get it on GitHub: github.com/L9th/l3th-mailrobbery
#Install
#Install dependencies
Install (or update)
ox_lib, and start it before this script in yourserver.cfg.#Pick your systems
In
configs/cl_config.lua:Setting Options interaction'ox','qb'or'custom'. Covers target, progress bar and notifications.minigame'sk-minigames','ox','glitch-minigames'or'custom'dispatch'tk_dispatch','ps-dispatch','cd_dispatch','fd-dispatch'or'custom'The inventory goes through
bridge/inventory. Using something that isn't listed? Make your own in theutilsandbridgefolders.#Check the items
Players rob a mailbox with a
lockpickor a crowbar (WEAPON_CROWBAR), and can find abank_cardor aletter. These need to exist in your inventory. Change the names in the config files to use items you already have.#Start the script
- Put the
l3th-mailrobberyfolder in your resources folder - Add
ensure l3th-mailrobberyto yourserver.cfg, after its dependencies - Restart the server
- Put the
#Configuration
#configs/cl_config.lua
| Setting | What it does | Default |
|---|---|---|
item, item2 | Items that can rob a mailbox | lockpick, WEAPON_CROWBAR |
duration, duration2 | How long robbing takes with each, in milliseconds | 10000, 8000 |
mailBoxes | Which mailbox props can be robbed | 6 props |
maxDistance | How close the player has to be | 1.4 |
policeChance | Chance the police are called, in % | 20 |
policeChanceAdded | Extra chance when using the crowbar, in % | 25 |
resetTime | Seconds before a mailbox can be robbed again | 1800 (30 min) |
debug | Shows debug messages and zones. Set to false on a live server. |
#configs/sv_config.lua
Reward is the loot table. Each entry has an item, a chance and an amount. An entry with item = nil is the chance of finding nothing.
The chances have to add up to exactly 100.
#Need help?
Most issues come from a missing dependency or the wrong start order in server.cfg, so run through the steps once more first. Still stuck? See Common problems or open a ticket on Discord.