SetRuntimeTexturePixel
DocsSetRuntimeTexturePixel(tex, x, y, r, g, b, a)Description
Sets a pixel in the specified runtime texture. This will have to be committed using COMMIT_RUNTIME_TEXTURE to have any effect.
Parameters
| Name | Type | Description |
|---|---|---|
tex | long | A handle to the runtime texture. |
x | int | The X position of the pixel to change. |
y | int | The Y position of the pixel to change. |
r | int | The new R value (0-255). |
g | int | The new G value (0-255). |
b | int | The new B value (0-255). |
a | int | The new A value (0-255). |
Quick Snippet: Get Coordinatesxy
xyAdd 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.