Jump to content

Question about Ladder climbing and Weapon Damage


Recommended Posts

Posted

Thank you, but the Weapondamage function only ever gives an error. How can I use the modding method to customize weapon damage?

Posted

First function is part of server side API, second function is part of client side API. Showing error would also help us help you.

For more info about modding GTA 5 I suggest doing your own research using google. There is already a lot of tutorials around for those things. Only thing that is different is that you do not mod your original game files, but you create a dlc.rpf archive and place it in your client_packages/game_resources/dlcpacks.

  • 7 months later...
Posted

Hello, I have a problem. I want to reduce the amount of gun damage to the player, but it doesn’t work

 

This example is correct

 

  mp.events.add('incomingDamage', (sourceEntity, sourcePlayer, targetEntity, weapon, boneIndex, damage) => {

        if (damage > 0)

        {

            if (weapon == weapon_unarmed)

            {

                mp.player.setWeaponDamageModifier(5);

            mp.player.weapon.setCurrentDamageEventCritical(false);

 

            }

        }

    });

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...