#how can i change the amount of damge a punch deals ?

1 messages · Page 1 of 1 (latest)

acoustic cliff
ashen rover
acoustic cliff
#

SET_PLAYER_MELEE_WEAPON_DAMAGE_MODIFIER and how can i set an amount ?

ashen rover
#

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)
acoustic cliff
ashen rover
#

Yep

acoustic cliff
# ashen rover 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 😅

ashen rover
#

Just copy what i wrote you up there and put it somewhere anywhere you want or make a new resource including fxmanifest

acoustic cliff
#

oh alright thanks for the info

limber moon
#

Doesn't need to be run in a thread