_DRAW_SPRITE_POLY_2
DocsDrawSpritePoly2(x1, y1, z1, x2, y2, z2, x3, y3, z3, red1, green1, blue1, alpha1, red2, green2, blue2, alpha2, red3, green3, blue3, alpha3, textureDict, textureName, u1, v1, w1, u2, v2, w2, u3, v3, w3)Description
Used for drawling Deadline trailing lights, see deadline.ytd
Each vertex has its own colour that is blended/illuminated on the texture. Additionally, the R, G, and B components are floats that are int-casted internally.
For UVW mapping (u,v,w parameters), reference your favourite internet resource for more details.
Parameters
| Name | Type | Description |
|---|---|---|
x1 | float | — |
y1 | float | — |
z1 | float | — |
x2 | float | — |
y2 | float | — |
z2 | float | — |
x3 | float | — |
y3 | float | — |
z3 | float | — |
red1 | float | — |
green1 | float | — |
blue1 | float | — |
alpha1 | int | — |
red2 | float | — |
green2 | float | — |
blue2 | float | — |
alpha2 | int | — |
red3 | float | — |
green3 | float | — |
blue3 | float | — |
alpha3 | int | — |
textureDict | char* | — |
textureName | char* | — |
u1 | float | — |
v1 | float | — |
w1 | float | — |
u2 | float | — |
v2 | float | — |
w2 | float | — |
u3 | float | — |
v3 | float | — |
w3 | float | — |
Quick Snippet: Get Coordinatesx1y1z1x2
x1y1z1x2Add 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.