TASK_GOTO_ENTITY_OFFSET_XY
Hash
0x338E7EF52B6095A9Runtime name
TaskGotoEntityOffsetXyNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x338E7EF52B6095A9Signature
void TASK_GOTO_ENTITY_OFFSET_XY(Ped ped, Entity entity, int duration, float targetRadius, float xOffset, float yOffset, float moveBlendRatio, int offsetFlags);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
entity | Entity | — |
duration | int | — |
targetRadius | float | — |
xOffset | float | — |
yOffset | float | — |
moveBlendRatio | float | — |
offsetFlags | int | — |
Returns void
Usage
TaskGotoEntityOffsetXy(ped, entity, duration, targetRadius, xOffset, yOffset, moveBlendRatio, offsetFlags)
-- always works, by hash
Citizen.InvokeNative(0x338E7EF52B6095A9, ped, entity, duration, targetRadius, xOffset, yOffset, moveBlendRatio, offsetFlags)JavaScript and C#
TaskGotoEntityOffsetXy(ped, entity, duration, targetRadius, xOffset, yOffset, moveBlendRatio, offsetFlags);
// by hash
Citizen.invokeNative('0x338E7EF52B6095A9', ped, entity, duration, targetRadius + 0.0000001, xOffset + 0.0000001, yOffset + 0.0000001, moveBlendRatio + 0.0000001, offsetFlags);Function.Call((Hash)0x338E7EF52B6095A9, ped, entity, duration, targetRadius, xOffset, yOffset, moveBlendRatio, offsetFlags);- 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
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.