From aea2da246a4bee2c003cab1eafeb108a9650c80a Mon Sep 17 00:00:00 2001 From: QBCore Framework <81791099+qbcore-framework@users.noreply.github.com> Date: Mon, 7 Jun 2021 20:21:21 -0500 Subject: [PATCH] Update main.lua --- client/main.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/main.lua b/client/main.lua index 012f97e..67dbb31 100644 --- a/client/main.lua +++ b/client/main.lua @@ -19,6 +19,8 @@ RegisterNetEvent('QBCore:Client:OnPlayerLoaded') AddEventHandler('QBCore:Client:OnPlayerLoaded', function() ShutdownLoadingScreenNui() isLoggedIn = true + SetCanAttackFriendly(PlayerPedId(), true, false) + NetworkSetFriendlyFireOption(true) end) RegisterNetEvent('QBCore:Client:OnPlayerUnload')