GET_POSITION_OF_VEHICLE_RECORDING_AT_TIME
Returns the position stored in vehicle recording recording at time.
Signature
Vector3 GET_POSITION_OF_VEHICLE_RECORDING_AT_TIME(int recording, float time, const char* script); // 0x1A00961A1BE94E5E b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | recording | int |
| 2 | time | float |
| 3 | script | const char* |
Facts
| Name | GET_POSITION_OF_VEHICLE_RECORDING_AT_TIME |
|---|---|
| Hash | 0x1A00961A1BE94E5E |
| Namespace | |
| Returns | Vector3 |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local coords = Citizen.InvokeNative(0x1A00961A1BE94E5E, -- GET_POSITION_OF_VEHICLE_RECORDING_AT_TIME
0, -- int recording
0.0, -- float time
"text", -- const char* script
Citizen.ResultAsVector()
)
print(coords.x, coords.y, coords.z)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const coords = Citizen.invokeNative("0x1A00961A1BE94E5E", // GET_POSITION_OF_VEHICLE_RECORDING_AT_TIME
0, // int recording
0.0, // float time
"text", // const char* script
Citizen.resultAsVector()
);
const [x, y, z] = coordsVector3 coords = Function.Call<Vector3>((Hash)0x1A00961A1BE94E5E, // GET_POSITION_OF_VEHICLE_RECORDING_AT_TIME
0, // int recording
0.0f, // float time
"text" // const char* script
);Related VEHICLE natives
- GET_ROTATION_OF_VEHICLE_RECORDING_AT_TIME
- GET_TIME_POSITION_IN_RECORDING
- GET_DRIVER_OF_VEHICLE
- GET_VEHICLE_MAX_NUMBER_OF_PASSENGERS
- GET_VEHICLE_MODEL_NUMBER_OF_SEATS
- GET_VEHICLE_NUMBER_OF_PASSENGERS
- GET_VEHICLE_TRAILER_VEHICLE
- GET_PED_IN_VEHICLE_SEAT
- GET_CLOSEST_VEHICLE
- GET_LAST_DRIVEN_VEHICLE
- GET_LAST_PED_IN_VEHICLE_SEAT
- GET_TRACK_INDEX_OF_TRAIN
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.