PVP not working on newest builds

Using latest server build 2705, enabling PVP is not working:

Citizen.CreateThread(
    function()
        NetworkSetFriendlyFireOption(true)
        SetCanAttackFriendly(GetPlayerPed(-1), true, true)
    end
)

Works just fine when using older server versions, for example 2674.

Any reason you’re using this call, too? Tried to repro it with the latest server, and friendly fire works perfectly fine using only stock scripts + executing NetworkSetFriendlyFireOption(true) from runcode. :confused:

Im using 2691 artifacts and it dont work too for me.

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
		SetCanAttackFriendly(GetPlayerPed(-1), true, false)
		NetworkSetFriendlyFireOption(true)
	end
end)

Why are you using randomly-selected versions? Does this also happen with no other non-default scripts?

Hello,
last night i try some artifact and upper than 2694,
it’s showing client/server mismatch,
And with 2694, i try with 3 players, we can’t PvP,
it was enabled by default by only one script (ExM) (i lookup if there is another script calling this)
and we cannot shoot on other player or punch, but carkill still working, so i backup to the old one i was using (to stop try one by one other), and on my artifact 2683, PvP back working, i don’t know why…
the lastest artifact work fine with Canary by the way :wink:

We are using build 2431 for now and everything is working just fine.

Using build 2746 PVP is working again.