# VEHICLE::GET_ROTATION_OF_VEHICLE_RECORDING_AT_TIME

- **Hash:** `0x61787DD28B8CC0D5`
- **Namespace:** VEHICLE
- **Runtime name (Lua/JS):** `GetRotationOfVehicleRecordingAtTime`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/VEHICLE/GET_ROTATION_OF_VEHICLE_RECORDING_AT_TIME

## Signature

```c
Vector3 GET_ROTATION_OF_VEHICLE_RECORDING_AT_TIME(int recording, float time, const char* script);
```

## Parameters

- `recording` (`int`)
- `time` (`float`)
- `script` (`const char*`)

## Returns

`Vector3`

## Description

This native does no interpolation between pathpoints. The same rotation will be returned for all times up to the next pathpoint in the recording.

See REQUEST_VEHICLE_RECORDING

## Usage

### Lua

```lua
local retval = GetRotationOfVehicleRecordingAtTime(recording, time, script)

-- always available, by hash
local retval = Citizen.InvokeNative(0x61787DD28B8CC0D5, recording, time, script, Citizen.ResultAsVector())
```

### JavaScript

```js
const retval = GetRotationOfVehicleRecordingAtTime(recording, time, script);

// by hash
const retval = Citizen.invokeNative('0x61787DD28B8CC0D5', recording, time + 0.0000001, script, Citizen.returnResultAnyway(), Citizen.resultAsVector());
```

### C#

```csharp
Vector3 retval = Function.Call<Vector3>((Hash)0x61787DD28B8CC0D5, recording, time, script);
```

- Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.

*Sources: alloc8or RDR3 NativeDB.*
