_SET_ENTITY_LOCKON_POINT_OFFSET
Sets an offset for the entity's lock-on/target focus point.
Hash
0xAF7F3099B9FEB535Runtime name
SetEntityLockonPointOffsetNamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _SET_ENTITY_LOCKON_POINT_OFFSET(Entity entity, float offsetX, float offsetY, float offsetZ);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
offsetX | float | — |
offsetY | float | — |
offsetZ | float | — |
Returns void
Description
Sets an offset for the entity's lock-on/target focus point.
This does not move the entity itself. It shifts the point used by targeting or camera focus when the entity is selected as a target.
Sets an offset for the entity's lock-on / target focus point.
Usage
SetEntityLockonPointOffset(entity, offsetX, offsetY, offsetZ)
-- always works, by hash
Citizen.InvokeNative(0xAF7F3099B9FEB535, entity, offsetX, offsetY, offsetZ)JavaScript and C#
SetEntityLockonPointOffset(entity, offsetX, offsetY, offsetZ);
// by hash
Citizen.invokeNative('0xAF7F3099B9FEB535', entity, offsetX + 0.0000001, offsetY + 0.0000001, offsetZ + 0.0000001);Function.Call((Hash)0xAF7F3099B9FEB535, entity, offsetX, offsetY, offsetZ);- 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. - The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.