Update main.lua

This commit is contained in:
QBCore Framework
2021-06-07 20:21:21 -05:00
committed by GitHub
parent 9f2628063b
commit aea2da246a
+2
View File
@@ -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')