This commit is contained in:
Mitroxs
2021-12-02 23:06:33 +01:00
committed by GitHub
parent 6ee16d2262
commit acc435a46a
+2 -2
View File
@@ -15,7 +15,7 @@ RegisterNetEvent('QBCore:Client:OnPlayerUnload', function()
end) end)
RegisterNetEvent('QBCore:Client:PvpHasToggled', function(pvp_state) RegisterNetEvent('QBCore:Client:PvpHasToggled', function(pvp_state)
SetCanAttackFriendly(PlayerPedId(), pvp_state, pvp_state) SetCanAttackFriendly(PlayerPedId(), pvp_state, false)
NetworkSetFriendlyFireOption(pvp_state) NetworkSetFriendlyFireOption(pvp_state)
end) end)
-- Teleport Commands -- Teleport Commands
@@ -139,4 +139,4 @@ RegisterNetEvent('QBCore:Command:ShowMe3D', function(senderId, msg)
Wait(0) Wait(0)
end end
end) end)
end) end)