Hand-checked
ENTITY::SET_ENTITY_COORDS
0xF9F5FD94F97BC258 ·RVA 0x03C13760
Signature
void SET_ENTITY_COORDS(
Entity entity,
Vector3 pos,
BOOL xAxis,
BOOL yAxis,
BOOL zAxis,
BOOL clearArea,
float searchRange
);
The scripts pass 9 values to this native; the decoded signature lists 7 (arguments the game doesn't read are left out).
Parameters 7
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Entity | entity |
– |
| 1 | Vector3 | pos |
– |
| 2 | BOOL | xAxis |
– |
| 3 | BOOL | yAxis |
– |
| 4 | BOOL | zAxis |
– |
| 5 | BOOL | clearArea |
– |
| 6 | float | searchRange |
– |
Returns
void Nothing.
Notes
- searchRange is not in RDR3. In the game code (the native at 0x03C13760), for entities that are neither peds nor vehicles, it is the distance in metres above and below the target position that the game searches for a clear place to put the entity: a vertical probe from pos + searchRange to pos - searchRange. Peds and vehicles ignore it. Only used when clearArea is false.
- Every script passes -1.0. -1.0 is not a special value in the code: it gives the same 1 m range, probed in the other direction.
- The other parameter names are RDR3's and have not been checked in the game code.
Call it
// ENTITY::SET_ENTITY_COORDS
invoke<Void>(0xF9F5FD94F97BC258, entity, pos, xAxis, yAxis, zAxis, clearArea, searchRange);// ENTITY::SET_ENTITY_COORDS
Function.Call((Hash)0xF9F5FD94F97BC258, entity, pos, xAxis, yAxis, zAxis, clearArea, searchRange);-- ENTITY::SET_ENTITY_COORDS
Citizen.InvokeNative(0xF9F5FD94F97BC258, entity, pos, xAxis, yAxis, zAxis, clearArea, searchRange)// ENTITY::SET_ENTITY_COORDS
Citizen.invokeNative("0xF9F5FD94F97BC258", entity, pos, xAxis, yAxis, zAxis, clearArea, searchRange);Generic call-by-hash templates in the style of the common GTA V / RDR2 script frameworks. Adapt the types to your tooling.
Improve this page
Know what this native does, a better name, or the real parameter types? Suggest an edit. A moderator reviews every suggestion, and approved edits credit you here.