Skip to content
Алексей . edited this page Oct 22, 2026 · 3 revisions

Use context.SF.Gta.World, Camera and Clock for local engine state. Network camera targets belong to Samp.Camera. Native queries require the game thread.

Collision and projection

TryRaycast queries loaded collision and returns hit position, normal, surface and an optional entity reference. Buildings/dummies can produce hits without a supported GTA pool handle. TryFindGround searches building collision below the supplied point. No hit does not prove an unloaded area is empty.

TryWorldToScreen projects with the current GTA camera and near/far clipping; success does not imply viewport inclusion. Camera exposes orientation, FOV, mode and fade state. SFUI's render-camera snapshot describes a different boundary and must not be silently substituted for simulation-time camera state.

Time

Gta.Clock publishes after GTA Idle Process, not on every message-loop iteration. It includes paused frames; inspect IsPaused. Delta is game time and is zero for the first tick, pause and timer reset. EngineTimeStep uses native 1/50-second units. Duplicate frame counters are suppressed. A conflicting Process call-site is reported unavailable rather than replaced with a fabricated timer.

The public API does not yet provide model streaming leases, local ped creation or task/animation control. For existing entities see entity handles and writes.

Sources: ISFWorld, camera, clock, tests.

Clone this wiki locally