HomeDocumentationFlake One-Hand Weapons
🔫

Flake One-Hand Weapons

A lightweight one-handed weapon holding system for FiveM. Toggle a realistic one-hand animation for any weapon via keybind or keep it always on.

FiveMStandaloneox_lib OptionalLua 5.4
Purchase Script
flakedev.com

Overview

Applies a jerrycan-style movement clipset to make your character hold weapons in one hand. Works with any weapon (or a custom list) and supports both toggle and always-on modes.

Features

  • Toggle or Always-On — Choose between a keybind toggle or permanent one-hand stance.
  • All Weapons or Whitelist — Apply to every weapon or only specific ones.
  • Custom Weapons Supported — Add any custom weapon hash to the list.
  • ox_lib Notifications — Optional styled notifications instead of GTA feed.
  • Admin Commands — Force enable/disable/list player states from console.
  • Rebindable Key — Players can change the toggle key in GTA settings.

Requirements

DependencyPurposeRequired
ox_libStyled notifications (optional)No

Installation

Place the flake_onehandweapon folder into your server's resources directory and add to server.cfg:

ensure flake_onehandweapon

Done

Restart your server and press M (or your configured key) to toggle one-hand holding.

File Structure

flake_onehandweapon/
├── config.lua       -- Settings (escrow-ignored)
├── client/
│   └── main.lua         -- Animation logic
├── server/
│   └── main.lua         -- Admin commands
└── fxmanifest.lua   -- Resource manifest

Configuration

All settings live in config.lua and are escrow-ignored.

Main Settings

SettingDefaultDescription
Config.Mode"keybind""keybind" (toggle) or "always" (permanent)
Config.WeaponCheckMode"all""all" (any weapon) or "list" (whitelist only)
Config.ToggleKey"M"Key to toggle one-hand holding (keybind mode only)
Config.ToggleCooldown2000Minimum milliseconds between toggles
Config.UseOxLibfalseUse ox_lib notifications instead of GTA feed

Supported Weapons

When Config.WeaponCheckMode = "list", only these weapons receive the animation. Add custom weapons by their spawn name.

Config.SupportedWeapons = {
    "WEAPON_ASSAULTRIFLE",
    "WEAPON_COMBATPISTOL",
    "WEAPON_CARBINERIFLE",
    "WEAPON_APPISTOL"
}

ox_lib Notification Options

Config.OxLibNotify = {
    position = 'top-right',
    duration = 4000,
    icon     = 'gun'
}

Commands

These commands require ace permissions and are intended for server console or admin use.

CommandAccessDescription
/onehand_check <id>AceCheck a player's current toggle state
/onehand_enable <id>AceForce-enable one-hand for a player
/onehand_disable <id>AceForce-disable one-hand for a player
/onehand_listAceList all players with one-hand enabled

Ace Permissions

Add these to your server.cfg to grant access: add_ace group.admin command.onehand_check allow (and similarly for the other commands).

Troubleshooting

IssueFix
Animation not applying on spawnFixed in v2.0 — the script now waits for the ped to exist before applying the clipset.
Keybind not workingEnsure Config.Mode is "keybind". Players can rebind the key in GTA settings.
Custom weapon not workingAdd the weapon spawn name to Config.SupportedWeapons and set mode to "list".
ox_lib notifications not showingEnsure ox_lib is started and Config.UseOxLib is true.
Admin commands not workingGrant the corresponding ace permission to your admin group in server.cfg.
Developed by Flake Development. For support, open a ticket in our Discord.