GraphicsClient

golfTrailSetFixedControlPoint

GOLF_TRAIL_SET_FIXED_CONTROL_POINT0xB1BB03742917A5D6

The GTA V native GOLF_TRAIL_SET_FIXED_CONTROL_POINT of the GRAPHICS namespace, as LS:MP client scripts call it: the global function golfTrailSetFixedControlPoint, in JavaScript and in Lua.

SignatureJavaScript
golfTrailSetFixedControlPoint(
  type: number,
  xPos: number,
  yPos: number,
  zPos: number,
  p4: number,
  red: number,
  green: number,
  blue: number,
  alpha: number
): void
SignatureLua
golfTrailSetFixedControlPoint(
  type: integer,
  xPos: number,
  yPos: number,
  zPos: number,
  p4: number,
  red: integer,
  green: integer,
  blue: integer,
  alpha: integer
)

Usage

JavaScript
golfTrailSetFixedControlPoint(type, xPos, yPos, zPos, p4, red, green, blue, alpha);
Lua
golfTrailSetFixedControlPoint(type, xPos, yPos, zPos, p4, red, green, blue, alpha)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
golfTrailSetFixedControlPoint(type, pos, p4, red, green, blue, alpha);
Lua · with vectors
golfTrailSetFixedControlPoint(type, pos, p4, red, green, blue, alpha)

Parameters

ParameterTypeJavaScriptLua
typeintnumberinteger
xPosfloatnumbernumber
yPosfloatnumbernumber
zPosfloatnumbernumber
p4floatnumbernumber
redintnumberinteger
greenintnumberinteger
blueintnumberinteger
alphaintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

12 matches across 4 scripts. All 4 scripts were job creators.

type ranged from 0 - 2.
p4 was always 0.2f. Likely scale.
assuming p5 - p8 is RGBA, the graphic is always yellow (255, 255, 0, 255).

Tested but noticed nothing.

Reference

Namespace
Graphics GRAPHICS
In the game
void GOLF_TRAIL_SET_FIXED_CONTROL_POINT(int type, float xPos, float yPos, float zPos, float p4, int red, int green, int blue, int alpha)
Hash
0xB1BB03742917A5D6

Open in the interactive natives reference