This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CreateThread(function() | |
Citizen.InvokeNative(0x144da052257ae7d8, true) | |
print("ENABLED NETWORK ALLOW REMOTE SYNC OF LOCAL PLAYERS") | |
end) | |
function GetNearestPlayerToMe() | |
local players = GetActivePlayers() | |
local closestPlayer, closestDistance = nil, 100000 | |
local myPos = GetEntityCoords(PlayerPedId()) | |
local myPlayerId = PlayerId() |