Skip to Content
Mavix

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

KeyWhat it doesWho
XHands upEveryone
Third eye on a player, RobOpen their inventoryPlayer holding a weapon

Config options

File: [scripts]/[standalone]/mvx_scripts/modules/player_robbery/config.lua

OptionWhat it changesExample
Config.RobCooldownSeconds before the same person can be robbed again300
Config.MaxDistanceHow close you must stand, in metres3
Config.StealModeWho 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

  1. Type /giveitem me WEAPON_PISTOL 1 and /giveitem me ammo-9 50. Take the pistol in your hands.
  2. Give the second player something to steal: /giveitem <their id> water 2 and /giveaccountmoney <their id> money 100.

Rob

  1. The second player presses X to put their hands up.
  2. 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.)
  3. Pick Rob. After a short animation their inventory opens next to yours.
  4. Drag the water and the cash into your inventory. They are now yours and gone from the other player.

Cooldown

  1. 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.

On this page