Skip to content

Game Pools

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

context.SF.Samp.Pools groups Players, Vehicles, Objects, Actors, Pickups, Menus, GangZones, Labels and TextDraws. All queries read native memory and require the game thread. Public contracts return IDs and snapshots, not Runtime wrappers.

Use IsAvailable/IsInitialized and normalized State where appropriate. RawState is revision-specific. Reconnect and restart can reset pools; invalidate cached mappings through Actions.Pools events. An available CNetGame does not prove that a particular entity exists.

Vehicles, labels and textdraws expose snapshots; other pools currently provide more limited existence/enumeration APIs. Do not assume a uniform create/delete/edit API. A method absent from Abstractions is not made public by finding a similarly named native wrapper.

Server IDs, client pickup slots and GTA handles are distinct. Pickups.GetIndex resolves a server pickup ID. Samp.Entities maps supported server entities to GTA references. Client pools are not an inventory of all server objects outside the stream zone, and GTA pools can contain local objects with no SA-MP ID.

Sources: ISFGamePools, individual contracts, reset observations. See entity handles.

Clone this wiki locally