Skip to content

Players

Алексей . edited this page Oct 22, 2026 · 4 revisions

context.SF.Samp.Players exposes client player-pool and scoreboard data. LocalPlayerId/Name/Score/Ping describe the local player; Get/TryGet methods, IsConnected, IsNpc and EnumeratePlayers cover other entries. Call every query on the game thread.

EnumeratePlayers materializes managed snapshots. It is safe to analyze those copies elsewhere, but not to make further native queries from a worker. UpdateScoreboard requests an update; completion is not proof that a new server table has already arrived. Score and ping can be stale.

A connected player may have no streamed GTA ped. Resolve Samp.Entities.TryGetPlayer and then Gta.Entities.TryGetSnapshot for world state. Failure to resolve a ped is not the same as disconnect. GetAimedPlayerId is nullable and does not prove a shot or hit.

Player IDs are reused. Track lifecycle/reset boundaries when building history. IsNpc identifies the client's normal NPC classification, not every automated client. A score, name or missing visible sync is not conclusive bot evidence.

Sources: ISFPlayers, snapshot, entity bridge. See entities and client events.

Clone this wiki locally