mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
Merge pull request #3 from Arctos2win/dev
fix player bugging in ground collision at spawn
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user