From bf4a2efd7bbed8fda4ebc46dda6a1547063d28d9 Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 2 Mar 2021 19:16:13 +0000 Subject: [PATCH] feat: make sync system check if the other ped is a player --- cl_sync.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_sync.lua b/cl_sync.lua index 2874a74..59e2e44 100644 --- a/cl_sync.lua +++ b/cl_sync.lua @@ -39,7 +39,7 @@ SYNC = {} function SYNC:SyncData( cb ) local otherPed = PLY:GetOtherPed() - if ( otherPed ~= nil and otherPed ~= 0 ) then + if ( otherPed ~= nil and otherPed ~= 0 and IsPedAPlayer( otherPed ) ) then local otherPly = GetPlayerServerId( NetworkGetPlayerIndexFromPed( otherPed ) ) cb( otherPly )