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.
Creating a Script
To enable PVP on your FiveM server, you will need to make a script:
- Login to Apollo Panel
- Navigate to File Manager
- Open your server "resources' folder.
- Inside of 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 of these files, and restart your server.
Congratulations, you have successfully enabled PVP on your FiveM server!
Still having trouble? Contact our support team for additional assistance.
By: Mason Baker
Updated on: 10/03/2025
Thank you!