> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.sparkedhost.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 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](https://control.sparkedhost.us/).

* In the **Files** tab, open the `resources` folder. 

* Create a new folder called "FriendlyFire"

  ![](https://images.surferseo.art/801c05ff-17d1-4fb4-972a-4190f0b7602f.png)

* 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!