SET_FOCUS_POS_AND_VEL
Hash
0x25F6EF88664540E2Runtime name
SetFocusPosAndVelNamespaceSTREAMING
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xBB7454BAFF08FE25Signature
void SET_FOCUS_POS_AND_VEL(float x, float y, float z, float offsetX, float offsetY, float offsetZ);Parameters
| Name | Type | Description |
|---|---|---|
x | float | — |
y | float | — |
z | float | — |
offsetX | float | — |
offsetY | float | — |
offsetZ | float | — |
Returns void
Usage
SetFocusPosAndVel(x, y, z, offsetX, offsetY, offsetZ)
-- always works, by hash
Citizen.InvokeNative(0x25F6EF88664540E2, x, y, z, offsetX, offsetY, offsetZ)JavaScript and C#
SetFocusPosAndVel(x, y, z, offsetX, offsetY, offsetZ);
// by hash
Citizen.invokeNative('0x25F6EF88664540E2', x + 0.0000001, y + 0.0000001, z + 0.0000001, offsetX + 0.0000001, offsetY + 0.0000001, offsetZ + 0.0000001);Function.Call((Hash)0x25F6EF88664540E2, x, y, z, 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.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.