# ScriptGameInstance

## Description

Main entry-point to get systems for gameplay / environment / etc.

See the global function \[GetGameInstance] which explains how to get a \`GameInstance\`.

## Functions

#### GetAchievementSystem(self: ScriptGameInstance) -> handle:gameAchievementSystem

CDPR only.

#### GetDelaySystem(self: ScriptGameInstance) -> handle:gameDelaySystem

Get system used to execute callback functions after a delay. It runs functions asynchronously in game loop.

#### GetFxSystem(self: ScriptGameInstance) -> handle:gameFxSystem

Get system used to spawn particle effects in the world.

#### GetSimTime(self: ScriptGameInstance) -> EngineTime

Get elapsed time since the simulation started. Time is reset when navigating between menu and in-game scenes. Time is paused when game is paused (e.g. inventory menu is open).

#### GetTelemetrySystem(self: ScriptGameInstance) -> handle:gameTelemetryTelemetrySystem

CDPR only.

#### GetTeleportationFacility(self: ScriptGameInstance) -> handle:gameTeleportationFacility

Get system used to teleport a \[GameObject] to \[Vector4] coordinates or to a \[NodeRef].

#### GetTimeSystem(self: ScriptGameInstance) -> handle:gameTimeSystem

Get system used to change game time, including time dilation.

#### GetVehicleSystem(self: ScriptGameInstance) -> handle:gameVehicleSystem

Get system used to summon vehicles and unlock vehicles in V's garage.

See also \[VehicleObject], \[VehicleComponent] and \[vehicleController] to access more vehicle behaviours.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.redmodding.org/nativedb-documentation/classes/scriptgameinstance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
