TomGrobbe / vMenu

vMenu is a custom server sided trainer/menu, built using a custom version of NativeUI. It has full permissions support, so the server owner can decide who's allowed to do what.
https://docs.vespura.com/vmenu
Other
349 stars 373 forks source link

PVP not enabled. #88

Closed mbergwall2222 closed 6 years ago

mbergwall2222 commented 6 years ago

When having this menu enabled on our servers, PVP is disabled. Is this an issue on our end or is there a menu option that disables this?

https://streamable.com/0wp32

TomGrobbe commented 6 years ago

This is probably because you just disabled scripthook and enabled this menu at the same time. Scripthook allows for pvp by default (when using a trainer), this menu does not touch pvp at all, you'll need to get a resource that enables pvp. (for example, vBasic has an option to enable pvp)

mbergwall2222 commented 6 years ago

Thing is, our script hook is enabled. We already have a script running this:

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

    local player = PlayerId()
    local playerPed = GetPlayerPed(-1)

    -- Enable pvp
    NetworkSetFriendlyFireOption(true)
    SetCanAttackFriendly(playerPed, true, false)

  end)
end)
TomGrobbe commented 6 years ago

maybe you have god mode enabled? Because my script never touches pvp...

mbergwall2222 commented 6 years ago

Nope neither have god mode. I assume something else is messed up then. Appreciate it.

TomGrobbe commented 6 years ago

If you disable vMenu, does pvp turn back on?

mbergwall2222 commented 6 years ago

Fixed it, we fixed our script lol