golfTrailGetVisualControlPoint
GOLF_TRAIL_GET_VISUAL_CONTROL_POINT0xA4664972A9B8F8BAThe GTA V native GOLF_TRAIL_GET_VISUAL_CONTROL_POINT of the GRAPHICS namespace, as LS:MP client scripts call it: the global function golfTrailGetVisualControlPoint, in JavaScript and in Lua.
golfTrailGetVisualControlPoint(
p0: number
): { x: number, y: number, z: number }golfTrailGetVisualControlPoint(p0: integer): Vector3Usage
JavaScript
const { x, y, z } = golfTrailGetVisualControlPoint(p0);Lua
local coords = golfTrailGetVisualControlPoint(p0)
-- coords.x, coords.y, coords.zParameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
p0 | int | number | integer |
Returns
Vector3 JavaScript { x: number, y: number, z: number }, Lua Vector3A 3D vector. JavaScript gets a plain { x, y, z } object; Lua gets a real Vector3, with .x .y .z and arithmetic. As an argument, one vector fills three consecutive coordinates.
Reference
- Namespace
- Graphics GRAPHICS
- In the game
Vector3 GOLF_TRAIL_GET_VISUAL_CONTROL_POINT(int p0)- Hash
0xA4664972A9B8F8BA