RedM Natives

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.

Hash0x61E360B7E040D12E
Runtime nameTaskGoStraightToCoordRelativeToEntity
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x61E360B7E040D12E

Signature

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

NameTypeDescription
pedPed—
entityEntity—
xOffsetfloat—
yOffsetfloat—
zOffsetfloat—
moveBlendRatioint—
timeBeforeTeleportint—
p7int—

Returns void

Description

alloc8or RDR3 NativeDB

Go to coords relative to entity wihtout using navmesh, if timeBeforeTeleport is -1 then it never teleports; p7 is 1 or 0 still unknown.

VORPCORE RDR3natives

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

Lua
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#
JavaScript
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);
C#
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. 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 · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.