_SET_ENTITY_LOCKON_POINT_OFFSET
Sets the offset of the point used when locking on to the entity.
Signature
void _SET_ENTITY_LOCKON_POINT_OFFSET(Entity entity, float offsetX, float offsetY, float offsetZ); // 0xAF7F3099B9FEB535 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | offsetX | float |
| 3 | offsetY | float |
| 4 | offsetZ | float |
Facts
| 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.
Citizen.InvokeNative(0xAF7F3099B9FEB535, -- _SET_ENTITY_LOCKON_POINT_OFFSET
PlayerPedId(), -- Entity entity
0.0, -- float offsetX
0.0, -- float offsetY
0.0 -- float offsetZ
)// 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
);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
);Related ENTITY natives
- _SET_ENTITY_ATTACHED_OFFSET
- _SET_ENTITY_COORDS_AND_HEADING_NO_OFFSET
- _SET_ENTITY_LIGHTS_ENABLED
- _SET_ENTITY_LIGHTS_OFF
- _SET_ENTITY_ANIM_AGE
- _SET_ENTITY_ANIM_CURRENT_TIME
- _SET_ENTITY_ANIM_SPEED
- _SET_ENTITY_CARCASS_TYPE
- _SET_ENTITY_CARRYING_FLAG
- _SET_ENTITY_COORDS_AND_HEADING
- _SET_ENTITY_CUSTOM_PICKUP_RADIUS
- _SET_ENTITY_DISABLE_FIRE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.