Skip to content

Instantly share code, notes, and snippets.

View logan-mcgee's full-sized avatar
:shipit:

logan logan-mcgee

:shipit:
View GitHub Profile
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()