Articles on: FiveM

How to Enable PVP on FiveM Server

How to Enable PVP on FiveM Server


When joining your FiveM server for the first time with a friend, you might notice that you aren't able to kill them. By default, player-on-player combat (friendly fire) is not enabled on FiveM. In this guide, we’ll walk you through the steps to enable PVP on your FiveM server.




Note: On roleplay servers, you might want to establish clear rules around roleplay scenarios to ensure that your players have a positive experience. (and to avoid unintended consequences!)


Creating a Script


To enable PVP on your FiveM server, you will need to make a script:


  • Access the Apollo Panel.
  • In the Files tab, open the resources folder.
  • Create a new folder called "FriendlyFire"



  • In the "FriendlyFire" folder, create a new file named "fxmanifest.lua", enter the following code:


fx_version 'adamant'
game 'gta5'

client_script 'client.lua'


  • In the "FriendlyFire" folder, create a new file named "client.lua", enter the following code:


Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
NetworkSetFriendlyFireOption(true)
end
end)


  • Save both files, then restart your server.


Congratulations, you have successfully enabled PVP on your FiveM server!

Updated on: 17/07/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!