From ff2047eea5ba59249590aee7f2f39f78cf2f8b63 Mon Sep 17 00:00:00 2001 From: Sylundef Date: Tue, 21 Nov 2017 16:13:09 +0100 Subject: [PATCH] Freeze object to sync client view --- client.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/client.lua b/client.lua index 7499f416..e80f44f9 100644 --- a/client.lua +++ b/client.lua @@ -42,6 +42,7 @@ Citizen.CreateThread(function() for k,v in pairs(objects) do local obj = GetClosestObjectOfType(GetEntityCoords(ped).x, GetEntityCoords(ped).y, GetEntityCoords(ped).z, 3.0, GetHashKey(v), false, true ,true) local dist = GetDistanceBetweenCoords(GetEntityCoords(ped), GetEntityCoords(obj), true) + FreezeEntityPosition(obj, false) table.insert(list, {object = obj, distance = dist}) end