GolfTrailSetFixedControlPoint
DocsGolfTrailSetFixedControlPoint(type, xPos, yPos, zPos, p4, red, green, blue, alpha)Description
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.
Parameters
| Name | Type | Description |
|---|---|---|
type | int | — |
xPos | float | — |
yPos | float | — |
zPos | float | — |
p4 | float | — |
red | int | — |
green | int | — |
blue | int | — |
alpha | int | — |
Quick Snippet: Get CoordinatesxPosyPoszPos
xPosyPoszPosAdd this command to your client script to retrieve precise locations in-game.
-- Add this to your client.lua. Type /pos in-game to copy coords.
RegisterCommand('pos', function()
local ped = PlayerPedId()
local coords = GetEntityCoords(ped)
local heading = GetEntityHeading(ped)
local output = string.format("vector4(%.2f, %.2f, %.2f, %.2f)", coords.x, coords.y, coords.z, heading)
print(output)
TriggerEvent('chat:addMessage', { args = { '^4[COORD]^0', output } })
end)Returns
voidThis native does not return a value.