Jump to content
×
×
  • Create New...
  • 0

Weapon Damage


Delotrium
Go to solution Solved by Conway,
Reason for Locking
Solved/Inactivity

By Benzaboy, on 10/26/20 12:44 PM.

Question

Hey Guys,

I am just wondering how can I decrease weapon damage and/or increase health of AI for my FiveM/FivePD server? Gun fights feel too easy and I want more action, thanks for any help.

 

Also, are there any free alternatives for a EUP style mod that has LEO uniforms?

 

Also also, Is there a FiveM compat. mod where you can ADS in First person?

Thanks 🙂
 

Edited by Delotrium
Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0
  • Solution

You can modify any weapon and it's damage to this FiveM Native (I set a taser to 0 and unarmed/fists to 5-10).

Players:
https://runtime.fivem.net/doc/natives/#_0xCE07B9F7817AADA3

AI:
https://runtime.fivem.net/doc/natives/?_0x1B1E2A40A65B8521

Note there are different natives for Melee and Weapons!

----

You can get the ACTUAL EUP for free from their discord - they have a FiveM resource pinned in 50% of there channels.

1181375915_ConwayGPMSign(2).png.222b6b96fc398f6107b76f0b800e9e59.png

 

Community Administrator and FivePD Support Guru

gpm_animated.gif

 

Link to post
Share on other sites
  • 0
7 hours ago, Conway said:

You can modify any weapon and it's damage to this FiveM Native (I set a taser to 0 and unarmed/fists to 5-10).

Players:
https://runtime.fivem.net/doc/natives/#_0xCE07B9F7817AADA3

AI:
https://runtime.fivem.net/doc/natives/?_0x1B1E2A40A65B8521

Note there are different natives for Melee and Weapons!

----

You can get the ACTUAL EUP for free from there discord - they have a FiveM resource pinned in 50% of there channels.

So how do natives work?      

Edited by Delotrium
Link to post
Share on other sites
  • 0
7 minutes ago, NorthCam18 said:

You would need to create a script using those functions/properties in order to change weapon damage, unfortunately, there is no other way.

By any chance- because I am only proficient in Machine/Deep Learning and Python- and no clue about Game Modifications, could you send your file if possible, or some sort of template?

Link to post
Share on other sites
  • 0
Just now, Delotrium said:

By any chance- because I am only proficient in Machine/Deep Learning and Python- and no clue about Game Modifications, could you send your file if possible, or some sort of template?

I don't have any modifications to do this, but it is simple. FiveM allows code in LUA and C#. There are simple guides available on the FiveM help docs.

NorthCam18

Arguably the best VIP member here

 

GitHub Account

Link to post
Share on other sites
  • 0

local Weapons = {
    ["WEAPON_COMBATPISTOL"] = 0.1,
    ["WEAPON_CARBINERIFLE"] = 0.1
}

Citizen.CreateThread(function()
    while true do
        Citizen.Wait(5)

        for weapon, modifier in pairs(Weapons) do
            if GetSelectedPedWeapon(PlayerPedId()) == GetHashKey(weapon) then
                SetPlayerWeaponDamageModifier(PlayerId(), v)
            end
        end
    end
end)

 

Would this work?

Link to post
Share on other sites
  • 0
25 minutes ago, Delotrium said:

local Weapons = {
    ["WEAPON_COMBATPISTOL"] = 0.1,
    ["WEAPON_CARBINERIFLE"] = 0.1
}

Citizen.CreateThread(function()
    while true do
        Citizen.Wait(5)

        for weapon, modifier in pairs(Weapons) do
            if GetSelectedPedWeapon(PlayerPedId()) == GetHashKey(weapon) then
                SetPlayerWeaponDamageModifier(PlayerId(), v)
            end
        end
    end
end)

 

Would this work?

I don't write in LUA nor understand the syntax that it is, but that looks like it should work. Only thing to do is test it out and try!

NorthCam18

Arguably the best VIP member here

 

GitHub Account

Link to post
Share on other sites
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

Important Information

Please view the site: Terms of Use, Privacy Policy, and Guidelines. // IMPORTANT: We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.