Melee weapons and fist fights in FiveM
GTA V has 18 melee weapons (knife, bat, crowbar, machete, knuckles and more), plus fists (WEAPON_UNARMED). Reduce melee damage with SetPlayerMeleeWeaponDamageModifier(PlayerId(), 0.5) or per weapon with SetWeaponDamageModifier. Stop pistol-whipping by disabling the melee attack controls (140, 141, 142) while a firearm is drawn.
Melee is where roleplay gets messy: vanilla GTA punches are brutal, a pistol-whip ends a standoff before anyone speaks, and a bat is lethal in two swings. A few client settings turn melee into something that supports scenes instead of ending them.

#The melee weapons
| Weapon | Name |
|---|---|
| Knife | WEAPON_KNIFE |
| Nightstick | WEAPON_NIGHTSTICK |
| Hammer | WEAPON_HAMMER |
| Baseball Bat | WEAPON_BAT |
| Crowbar | WEAPON_CROWBAR |
| Golf Club | WEAPON_GOLFCLUB |
| Bottle | WEAPON_BOTTLE |
| Dagger | WEAPON_DAGGER |
| Hatchet | WEAPON_HATCHET |
| Knuckle Duster | WEAPON_KNUCKLE |
| Machete | WEAPON_MACHETE |
| Flashlight | WEAPON_FLASHLIGHT |
| Switchblade | WEAPON_SWITCHBLADE |
| Pool Cue | WEAPON_POOLCUE |
| Wrench | WEAPON_WRENCH |
| Battle Axe | WEAPON_BATTLEAXE |
| Stone Hatchet | WEAPON_STONE_HATCHET |
| Candy Cane | WEAPON_CANDYCANE |
Hashes for all of them are in the weapon names and hashes list.
#Reducing melee and punch damage
CreateThread(function()
SetPlayerMeleeWeaponDamageModifier(PlayerId(), 0.5) -- all melee at 50%
SetWeaponDamageModifier(`WEAPON_UNARMED`, 0.3) -- fists weaker still
SetWeaponDamageModifier(`WEAPON_BAT`, 0.6)
end)Fist fights in particular benefit from low damage: a fight that ends in two punches has no scene in it. See damage modifiers for how the two modifiers interact.
#Stopping pistol-whipping
CreateThread(function()
while true do
local ped = PlayerPedId()
if IsPedArmed(ped, 4) then -- 4 = firearms (1 = melee, 2 = explosives)
DisableControlAction(0, 140, true) -- melee attack light
DisableControlAction(0, 141, true) -- melee attack heavy
DisableControlAction(0, 142, true) -- melee attack alternate
Wait(0)
else
Wait(250)
end
end
end)The loop only runs every frame while a firearm is drawn. IsPedArmed with flag 4 checks for firearms only, leaving knives and bats usable.
#Melee in roleplay
- Knives and bats as inventory items with weight, so carrying them is a choice.
- Lower melee damage so fights create injuries rather than deaths.
- Police batons (
WEAPON_NIGHTSTICK) and flashlights double as tools. - Consider melee in your server rules — e.g. no random punching.
Questions
How do I reduce punch damage in FiveM?
SetWeaponDamageModifier(`WEAPON_UNARMED`, 0.3) or scale all melee with SetPlayerMeleeWeaponDamageModifier(PlayerId(), 0.5) on the client.How do I disable pistol whipping?
What is the weapon name for fists?
WEAPON_UNARMED.How many melee weapons are in GTA V?
Ready to pick a map?
Twelve themes on three base map styles, $8 each, instant download.
Relevant to what you just read