Why i can´t kill EMS/Police?

Hi, recently in my server i cant kill ems and police people i dont know if it is a new update or something that i activate in somewhere, because before i update the police job i can kill police and ems, recently update my essentials folder but i dont know.

Thank you in advance and sorry for my bad english.

Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.

Please note that most of the support is provided by the FiveM community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.

To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.

Thanks for keeping these forums tidy!
:mascot:

Moved to #server-development:essentialmode

PvP has been removed from essentialmode in the newest version.

i changed to true in that part but still the same

what did you change to true?
basically you just need to do this to be able to kill others

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
		for i = 0,32 do
			if NetworkIsPlayerActive(i) then
				SetCanAttackFriendly(GetPlayerPed(i), true, true)
				NetworkSetFriendlyFireOption(true)
			end
		end
	end
end)

sorry, i add it to the main but isnt work or there is a file to edit that?

create a new folder in resources directory name it “pvp” or whatever you want
create a file __resource.lua

resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'

client_script 'pvp.lua'

create pvp.lua

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
		for i = 0,32 do
			if NetworkIsPlayerActive(i) then
				SetCanAttackFriendly(GetPlayerPed(i), true, true)
				NetworkSetFriendlyFireOption(true)
			end
		end
	end
end)

add start pvp in your server.cfg

thank you very much it works.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.