#how can i change the amount of damge a punch deals ?
1 messages · Page 1 of 1 (latest)
sould i put it in the server config ?
SET_PLAYER_MELEE_WEAPON_DAMAGE_MODIFIER and how can i set an amount ?
Put it clientside or make a new folder
example
CreateThread(function()
while true do
Wait(500)
local ped = PlayerPedId()
local player = PlayerId()
local weapon = GetSelectedPedWeapon(ped)
if weapon == `WEAPON_UNARMED` then
-- Double damage for fists
SetPlayerMeleeWeaponDamageModifier(player, 2.0, false)
else
-- Reset to normal when using a melee weapon
SetPlayerMeleeWeaponDamageModifier(player, 1.0, false)
end
end
end)
and the damge is 2.0? i can change it?
Yep
alright ill try so sould i just make an folder and fxmaintfest and such like a new script? i just need to be sure 😅
Just copy what i wrote you up there and put it somewhere anywhere you want or make a new resource including fxmanifest
oh alright thanks for the info