Rob a Player
Rob another player who has their hands up.
What it is
A player with a weapon can rob another player who has their hands up, and take items and cash from their pockets.
How it works
Hold a weapon
You need any weapon in your hands (not fists).
The other player puts their hands up
They press X. The Rob option only shows on players with their hands up.
Rob
Stand close, use the third eye on them and pick Rob. Their inventory opens next to yours and you can take what you want.
The same person can be robbed once every 5 minutes. Dead players cannot be robbed.
Keys & commands
| Key | What it does | Who |
|---|---|---|
| X | Hands up | Everyone |
| Third eye on a player, Rob | Open their inventory | Player holding a weapon |
Config options
File: [scripts]/[standalone]/mvx_scripts/modules/player_robbery/config.lua
| Option | What it changes | Example |
|---|---|---|
Config.RobCooldown | Seconds before the same person can be robbed again | 300 |
Config.MaxDistance | How close you must stand, in metres | 3 |
Config.StealMode | Who can be robbed: "HandsUp", "Dead" or "Both" | "HandsUp" |
Logs: see Webhooks & Logs (channel robbery).
Admin Quick Test
This needs a second player (a friend or a second game).
Setup
- Type
/giveitem me WEAPON_PISTOL 1and/giveitem me ammo-9 50. Take the pistol in your hands. - Give the second player something to steal:
/giveitem <their id> water 2and/giveaccountmoney <their id> money 100.
Rob
- The second player presses X to put their hands up.
- Stand within 1.5 m and use the third eye on them. Rob shows. (Without hands up, or without a weapon in your hands, it does not show or is refused.)
- Pick Rob. After a short animation their inventory opens next to yours.
- Drag the water and the cash into your inventory. They are now yours and gone from the other player.
Cooldown
- Close the inventory and try Rob again on the same player. It says "This player was robbed recently." You can rob them again after 5 minutes.
If it doesn't work: "You need a weapon in your hands to rob someone." → hold the gun, not fists. No Rob option → the other player must have their hands up and you must be close.