SetPlayerWeaponDamageModifier Serverside

Does anyone have an idea how to bring this serverside? Meaning if player x has pistol damage 100 and player y has pistol damage 200, player x gets the damage from player y(200) and not her own 100 ?

Im asking cause im writing an MMORPG for fivem, with mapreplacement swords crafting and stuff like that. the last point im really stuck is the SetPlayerWeaponDamageModifier.

No one?

I’m pretty sure that you just need to use SetPlayerWeaponDamageModifier native on the player with the good damage amount, if player x have a 200dmg pistol then set his damage modifier to 200 and player y set his to 100, I’m not 100% sure its gonna work, but I think it is

Hey, thanks for reply. i already had it like this. but the main problem was if player x has 200dmg and player y has 100dmg, player x recieved her own damage and player y only the 100 he has

here is my old version of it. im currently rewrite it

i believe the native SetPlayerWeaponDamageModifier doesnt work at all. Tested in a basic loop like this with PlayerId(), PlayerPedId(), GetPlayerPed(-1)

Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
SetPlayerWeaponDamageModifier(PlayerPedId(), 0.5)
print(GetPlayerWeaponDamageModifier(PlayerPedId()…“PLAYERDAMAGE”))
end
end)