From b7e4eb7695818a0867ecf46e19b3f2987847ed7d Mon Sep 17 00:00:00 2001 From: hakanesnn <106948628+hakanesnn@users.noreply.github.com> Date: Sun, 23 Feb 2025 16:28:47 +0300 Subject: [PATCH] Update 0x2D3B147AFAD49DE0 correct name --- GRAPHICS/DrawSpriteArx.md | 45 ++++++++++++++++++++++++++++++++ GRAPHICS/N_0x2d3b147afad49de0.md | 43 ------------------------------ 2 files changed, 45 insertions(+), 43 deletions(-) create mode 100644 GRAPHICS/DrawSpriteArx.md delete mode 100644 GRAPHICS/N_0x2d3b147afad49de0.md diff --git a/GRAPHICS/DrawSpriteArx.md b/GRAPHICS/DrawSpriteArx.md new file mode 100644 index 000000000..361982019 --- /dev/null +++ b/GRAPHICS/DrawSpriteArx.md @@ -0,0 +1,45 @@ +--- +ns: GRAPHICS +aliases: ['0x2D3B147AFAD49DE0'] +--- + +## DRAW_SPRITE_ARX + +```c +// 0x2D3B147AFAD49DE0 +void DRAW_SPRITE_ARX(char* textureDict, char* textureName, float x, float y, float width, float height, float p6, int red, int green, int blue, int alpha, int p11); +``` + +``` +Used in arcade games and Beam hack minigame in Doomsday Heist. For example, [Penetrator Arcade Game](https://streamable.com/8igrzw) + +NativeDB Introduced: v1290 +``` + +## Parameters + +- **textureDict**: textureDict +- **textureName**: textureName +- **x**: x position must be between 0.0 and 1.0 (1.0 being the most right side of the screen) +- **y**: y position must be between 0.0 and 1.0 (1.0 being the most bottom side of the screen) +- **width**: width 0.0 - 1.0 is the reasonable amount generally +- **height**: height 0.0 - 1.0 is the reasonable amount generally +- **p6**: almost always 0.0 +- **red**: red color +- **green**: green color +- **blue**: blue color +- **alpha**: alpha +- **p11**: unknown but almost always 0 + +## Examples + +```lua +CreateThread(function() + RequestStreamedTextureDict('MPArcadeDegenatron', false) + while not HasStreamedTextureDictLoaded('MPArcadeDegenatron') do Wait(10) end + while true do + DrawSpriteArx('MPArcadeDegenatron', 'penetrator_scene_frame', 0.5, 0.5, 0.4, 0.6, 0.0, 255, 0, 0, 255, 0) + Wait(0) + end +end) +``` diff --git a/GRAPHICS/N_0x2d3b147afad49de0.md b/GRAPHICS/N_0x2d3b147afad49de0.md deleted file mode 100644 index 865d64046..000000000 --- a/GRAPHICS/N_0x2d3b147afad49de0.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -ns: GRAPHICS ---- -## _0x2D3B147AFAD49DE0 - -```c -// 0x2D3B147AFAD49DE0 -void _0x2D3B147AFAD49DE0(char* textureDict, char* textureName, float x, float y, float width, float height, float p6, int red, int green, int blue, int alpha, int p11); -``` - -``` -Used in arcade games and Beam hack minigame in Doomsday Heist. For example, [Penetrator Arcade Game](https://streamable.com/8igrzw) - -NativeDB Introduced: v1290 -``` - -## Parameters -* **textureDict**: inside script_txds.rpf, browse it with OpenIV -* **textureName**: textureName -* **x**: x position must be between 0.0 and 1.0 (1.0 being the most right side of the screen) -* **y**: y position must be between 0.0 and 1.0 (1.0 being the most bottom side of the screen) -* **width**: width 0.0 - 1.0 is the reasonable amount generally -* **height**: height 0.0 - 1.0 is the reasonable amount generally -* **p6**: almost always 0.0 -* **red**: red color -* **green**: green color -* **blue**: blue color -* **alpha**: alpha -* **p11**: - -## Examples - -```lua --- 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) -```