🔫
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
| Dependency | Purpose | Required |
|---|---|---|
ox_lib | Styled 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
| Setting | Default | Description |
|---|---|---|
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.ToggleCooldown | 2000 | Minimum milliseconds between toggles |
Config.UseOxLib | false | Use 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.
| Command | Access | Description |
|---|---|---|
/onehand_check <id> | Ace | Check a player's current toggle state |
/onehand_enable <id> | Ace | Force-enable one-hand for a player |
/onehand_disable <id> | Ace | Force-disable one-hand for a player |
/onehand_list | Ace | List 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
| Issue | Fix |
|---|---|
| Animation not applying on spawn | Fixed in v2.0 — the script now waits for the ped to exist before applying the clipset. |
| Keybind not working | Ensure Config.Mode is "keybind". Players can rebind the key in GTA settings. |
| Custom weapon not working | Add the weapon spawn name to Config.SupportedWeapons and set mode to "list". |
| ox_lib notifications not showing | Ensure ox_lib is started and Config.UseOxLib is true. |
| Admin commands not working | Grant the corresponding ace permission to your admin group in server.cfg. |
Developed by Flake Development. For support, open a ticket in our Discord.
