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 )