Repository navigation
World
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.
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.
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.
- Главная / Home
- Установка
- Архитектура и совместимость
- SA-MP R1, R3-1, R5-1
- Написание модулей
- Плагины и зависимости
- Жизненный цикл
- API модулей
- Потоки и время жизни
- Ранняя загрузка
- Конфигурация и ассеты