From acc435a46a8d441ef58d1762a0096fcaa77c05f4 Mon Sep 17 00:00:00 2001 From: Mitroxs <59477429+Mitroxs@users.noreply.github.com> Date: Thu, 2 Dec 2021 23:06:33 +0100 Subject: [PATCH] Typo --- client/events.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/events.lua b/client/events.lua index 9a3d722..82d93b4 100644 --- a/client/events.lua +++ b/client/events.lua @@ -15,7 +15,7 @@ RegisterNetEvent('QBCore:Client:OnPlayerUnload', function() end) RegisterNetEvent('QBCore:Client:PvpHasToggled', function(pvp_state) - SetCanAttackFriendly(PlayerPedId(), pvp_state, pvp_state) + SetCanAttackFriendly(PlayerPedId(), pvp_state, false) NetworkSetFriendlyFireOption(pvp_state) end) -- Teleport Commands @@ -139,4 +139,4 @@ RegisterNetEvent('QBCore:Command:ShowMe3D', function(senderId, msg) Wait(0) end end) -end) \ No newline at end of file +end)