LonexOne

Lock vehicles, weapons and peds to groups

Choose which groups can drive a vehicle, use a weapon or attachment, or play as a ped. Everyone else is stopped in game. It does the job of DiscordVehiclesRestrict, DiscordWeaponPerms and DiscordPedPerms, and can import their lists.

Mechanics Updated 12 Nov 2026 3 min read
On this page

Each group on the Game Permissions board can lock vehicles, weapons and peds. Once something is on a group's list, only players in a group that lists it can use it. Lock a donator car to your Donator group, the RPG to Admin, or a police ped to LSPD.

Nothing is locked until a group lists it. Two groups can list the same thing, and players in either can use it.

Before you start#

  • Game Permissions needs to be switched on for your community. See Set up game permissions.
  • Your game server needs the LonexOne FiveM resource, version 0.14.0 or newer.

Lock something#

  1. Click Game permissions under Mechanics in the sidebar.
  2. Pick the group on the left.
  3. Under Locked vehicles, weapons and peds, type a name in the box for vehicles, weapons or peds, then click Lock.
    • Vehicles use their spawn name, like adder or polmav.
    • Weapons use their game name, like WEAPON_RPG. Start typing and the box suggests weapons and attachments, like COMPONENT_AT_PI_SUPP for a pistol suppressor.
    • Peds use their model name, like s_m_y_cop_01.
  4. Click Save at the top.

You can paste a whole list into a box at once, with the names separated by spaces, commas or new lines. Click × on a name to unlock it.

What happens in game#

Locked A player without the group
Vehicle Is taken out of the driver's seat as they get in. Passengers are left alone. You can choose to delete the vehicle instead.
Weapon Has the weapon taken, whichever way they got it.
Attachment Has the attachment taken off the weapon in their hands. They keep the weapon.
Ped Is switched to another ped, mp_m_freemode_01 unless you pick another.

Each time, the player gets a notification that they can't use it.

Weapons from a department loadout are taken too, unless the player is in a group that lists them. If your police loadout has a locked weapon, add your police department to that group.

Change what happens#

Under the board, in Locked vehicles, weapons and peds:

  • A driver who can't use the vehicle: take them out of the driver's seat, or delete the vehicle.
  • Ped to switch to: the model players are switched to.

Click Save. Your server picks it up within a minute.

Moving over from DiscordVehiclesRestrict, DiscordWeaponPerms or DiscordPedPerms#

  1. Click Import config at the top of the Game Permissions page.
  2. Open the script's server.lua and client.lua. Copy both into the DiscordVehiclesRestrict, DiscordWeaponPerms or DiscordPedPerms box, one after the other.
  3. Click Preview. Each role in the script's roleList becomes a group that can use the vehicles, weapons or peds at the same place in its list. If a group on your board already has that Discord role, the items are added to it.
  4. Click Import.
  5. Take the script out of server.cfg and delete its folder, then restart the server.

LonexOne never runs what you paste. Roles in the script that still say 1 have no Discord role yet. Their group is made without one, so drag the role onto it after.

Players checking what they can use#

Players can type /myperms in game to see their groups and how many locked vehicles, weapons and peds they can use.

See also

Can't find what you need?

Open a ticket in our Discord and someone from the team will help. Found a bug, or missing a feature? Tell us on the feedback board.

Ask on Discord