Merge pull request #3 from Arctos2win/dev

fix player bugging in ground collision at spawn
This commit is contained in:
Arctos2win
2024-01-24 22:24:44 +01:00
committed by GitHub
+3 -1
View File
@@ -52,7 +52,9 @@ AddEventHandler('esx:playerLoaded', function(xPlayer, isNew, skin)
ESX.PlayerLoaded = true
while ESX.PlayerData.ped == nil do Wait(20) end
while not HasCollisionLoadedAroundEntity(ESX.PlayerData.ped) do Wait(0) end
if Config.EnablePVP then
SetCanAttackFriendly(ESX.PlayerData.ped, true, false)
NetworkSetFriendlyFireOption(true)