The Lab
ENTITY native

_SET_ENTITY_LOCKON_POINT_OFFSET

returns void4 paramsbuild 1207

Sets the offset of the point used when locking on to the entity.

Signature

C
void _SET_ENTITY_LOCKON_POINT_OFFSET(Entity entity, float offsetX, float offsetY, float offsetZ); // 0xAF7F3099B9FEB535 b1207

Parameters

#NameType
1entityEntity
2offsetXfloat
3offsetYfloat
4offsetZfloat

Facts

Facts about _SET_ENTITY_LOCKON_POINT_OFFSET
Name
_SET_ENTITY_LOCKON_POINT_OFFSET
Hash
0xAF7F3099B9FEB535
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xAF7F3099B9FEB535, -- _SET_ENTITY_LOCKON_POINT_OFFSET
  PlayerPedId(), -- Entity entity
  0.0, -- float offsetX
  0.0, -- float offsetY
  0.0 -- float offsetZ
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xAF7F3099B9FEB535", // _SET_ENTITY_LOCKON_POINT_OFFSET
  PlayerPedId(), // Entity entity
  0.0, // float offsetX
  0.0, // float offsetY
  0.0 // float offsetZ
);
C#
Function.Call((Hash)0xAF7F3099B9FEB535, // _SET_ENTITY_LOCKON_POINT_OFFSET
  API.PlayerPedId(), // Entity entity
  0.0f, // float offsetX
  0.0f, // float offsetY
  0.0f // float offsetZ
);
All ENTITY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.