_0x2D3B147AFAD49DE0
Docs0x2d3b147afad49de0(textureDict, textureName, x, y, width, height, p6, red, green, blue, alpha, p11)Description
Introduced in build 1290
Used in arcade games and Beam hack minigame in Doomsday Heist. For example, Penetrator Arcade Game
Parameters
| Name | Type | Description |
|---|---|---|
textureDict | char* | inside script_txds.rpf, browse it with OpenIV |
textureName | char* | textureName |
x | float | x position must be between 0.0 and 1.0 (1.0 being the most right side of the screen) |
y | float | y position must be between 0.0 and 1.0 (1.0 being the most bottom side of the screen) |
width | float | width 0.0 - 1.0 is the reasonable amount generally |
height | float | height 0.0 - 1.0 is the reasonable amount generally |
p6 | float | almost always 0.0 |
red | int | red color |
green | int |
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.
Examples
Official
-- drawing the game area for penetrator arcade game
Citizen.CreateThread(function()
RequestStreamedTextureDict("MPArcadeDegenatron", false)
while not HasStreamedTextureDictLoaded("MPArcadeDegenatron") do Citizen.Wait(1) end
while true do
N_0x2d3b147afad49de0("MPArcadeDegenatron", "penetrator_scene_frame", 0.5, 0.5, 0.4, 0.6, 0.0, 255, 0, 0, 255, 0)
Citizen.Wait(1)
end
end)