TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY
Go to coords relative to entity wihtout using navmesh, if timeBeforeTeleport is -1 then it never teleports; p7 is 1 or 0 still unknown.
Hash
0x61E360B7E040D12ERuntime name
TaskGoStraightToCoordRelativeToEntityNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x61E360B7E040D12ESignature
void TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY(Ped ped, Entity entity, float xOffset, float yOffset, float zOffset, int moveBlendRatio, int timeBeforeTeleport, int p7);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
entity | Entity | — |
xOffset | float | — |
yOffset | float | — |
zOffset | float | — |
moveBlendRatio | int | — |
timeBeforeTeleport | int | — |
p7 | int | — |
Returns void
Description
Go to coords relative to entity wihtout using navmesh, if timeBeforeTeleport is -1 then it never teleports; p7 is 1 or 0 still unknown.
Tells the ped to go to an offset coord from an entity, without using the navmesh. if timeBeforeTeleport is -1 the ped will never warp, p7 is 1 or 0 still unknown param
Usage
TaskGoStraightToCoordRelativeToEntity(ped, entity, xOffset, yOffset, zOffset, moveBlendRatio, timeBeforeTeleport, p7)
-- always works, by hash
Citizen.InvokeNative(0x61E360B7E040D12E, ped, entity, xOffset, yOffset, zOffset, moveBlendRatio, timeBeforeTeleport, p7)JavaScript and C#
TaskGoStraightToCoordRelativeToEntity(ped, entity, xOffset, yOffset, zOffset, moveBlendRatio, timeBeforeTeleport, p7);
// by hash
Citizen.invokeNative('0x61E360B7E040D12E', ped, entity, xOffset + 0.0000001, yOffset + 0.0000001, zOffset + 0.0000001, moveBlendRatio, timeBeforeTeleport, p7);Function.Call((Hash)0x61E360B7E040D12E, ped, entity, xOffset, yOffset, zOffset, moveBlendRatio, timeBeforeTeleport, p7);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.