_DRAW_MARKER_2
DocsDrawMarker2(type, posX, posY, posZ, dirX, dirY, dirZ, rotX, rotY, rotZ, scaleX, scaleY, scaleZ, red, green, blue, alpha, bobUpAndDown, faceCamera, p19, rotate, textureDict, textureName, drawOnEnts, p24)Description
NativeDB Added Parameter 26: BOOL p25
Parameters
| Name | Type | Description |
|---|---|---|
type | int | — |
posX | float | — |
posY | float | — |
posZ | float | — |
dirX | float | — |
dirY | float | — |
dirZ | float | — |
rotX | float | — |
rotY | float | — |
rotZ | float | — |
scaleX | float | — |
scaleY | float | — |
scaleZ | float | — |
red | int | — |
green | int | — |
blue | int | — |
alpha | int | — |
bobUpAndDown | BOOL | — |
faceCamera | BOOL | — |
p19 | int | — |
rotate | BOOL | — |
textureDict | char* | — |
textureName | char* | — |
drawOnEnts | BOOL | — |
p24 | BOOL | — |
Quick Snippet: Get CoordinatesposXposYposZdirX
posXposYposZdirXAdd 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.