How do I add PvP in my server

Hello Hope everyone is well, I have some questions regarding pvp, and yes I know I need to look through the forums for an answer and I did find an answer however it doesn’t fit me. My server uses FileZilla and not Lua and i found a script that can enable pvp but its for Lua. If anyone could be kind enough to tell me how to convert the Lua so its able to be put in FileZilla or if there is a file I can download to add to the FileZilla if anyone has the response please do tell me.

Thank you
-soccercoolman

That is a simple snippet.

AddEventHandler("playerSpawned", function()
  Citizen.CreateThread(function()

    local player = PlayerId()

    -- Enable pvp
    NetworkSetFriendlyFireOption(true)
    SetCanAttackFriendly(player, true, true)

  end)
end)

You can check Fivem Site for natives there is more usefull natives over there here is a link!