Jump to content

[HELP] How to set the dx text anchor to center ?


Recommended Posts

Hello, i'm developing a HUD, but i've found a problem...
So, i'm using relative text (screen size from 0.0 to 1.0), and i'm drawing a dxtext on the center of the screen (0.5)
Everything is fine, but as far as i know the dx text anchor is on the top left, , and i want it to be on the top center, how would i do this ?

Images explaining what i'm trying to achieve below, yellow is the half of the screen (0.5), purple is the text anchor and red is the text size.

I currently have this:
spacer.png

And i want to do this:
spacer.png

Thanks since now !

Link to comment
20 minutes ago, FabianRs said:

Show your code

Sorry, here it is, ignore variable names, width/height is inverted with pos:
 

local x, y = guiGetScreenSize()
local font = dxCreateFont('strangerbackinthenight.ttf', 25, false, 'proof') or 'bankgothic' -- fallback to default
local textColor = tocolor(255,255,255,255)
local outlineColor = tocolor(0,0,0,255)

-- custom valores
local drawWidth = 0.5
local drawHeight = 0.94
local drawPosX = 9.1
local drawPosY = 367.0
local drawHeightWeapName = 0.91
local drawHeightWatch = 0.1

function hud ( )
	clip = getPedAmmoInClip ( getLocalPlayer() )
	totalammo = getPedTotalAmmo ( getLocalPlayer() )
	weapon = getPedWeapon( getLocalPlayer() )
    --auto = getPedWeapon( getLocalPlayer() )	
    setPlayerHudComponentVisible ("weapon", false )
    setPlayerHudComponentVisible ("ammo", false)
    setPlayerHudComponentVisible ("clock", false)
	
	if weapon == 0 or weapon == 46 then return end
	local arma = getElementData(getLocalPlayer(), "currentweapon_1")
	local arma2 = getElementData(getLocalPlayer(), "currentweapon_2")
	local arma3 = getElementData(getLocalPlayer(), "currentweapon_3")	
	
    if weapon == 25 or weapon == 26 or weapon == 27 or weapon == 30 or weapon == 31 or weapon == 33 or weapon == 34 then
		dxDrawBorderedText(1, ""..clip.." / "..totalammo, x*drawWidth,y*drawHeight,x*drawPosX,y*drawPosY,textColor,0.8,font,"left","top",false,false,false)
		dxDrawBorderedText(1, arma, x*drawWidth,y*drawHeightWeapName,x*drawPosX,y*drawPosY,textColor,0.8,font)
	end
    if weapon == 0 or weapon == 1 or weapon == 2 or weapon == 3 or weapon == 4 or weapon == 5 or weapon == 6 or weapon == 7 or weapon == 8 or weapon == 9 then
		dxDrawBorderedText(1, arma2, x*drawWidth,y*drawHeightWeapName,x*drawPosX,y*drawPosY,textColor,0.8,font)
	end
    if weapon == 22 or weapon == 23 or weapon == 24 or weapon == 28 or weapon == 29 or weapon == 43 then
		dxDrawBorderedText(1, ""..clip.." / "..totalammo, x*drawWidth,y*drawHeight,x*drawPosX,y*drawPosY,textColor,0.8,font,"left","top",false,false,false)
		dxDrawBorderedText(1, arma2, x*drawWidth,y*drawHeightWeapName,x*drawPosX,y*drawPosY,textColor,0.8,font)
	end
    if weapon == 16 or weapon == 17 then
		dxDrawBorderedText(1, ""..clip.." / "..totalammo, x*drawWidth,y*drawHeight,x*drawPosX,y*drawPosY,textColor,0.8,font,"left","top",false,false,false)
		dxDrawBorderedText(1, arma3, x*drawWidth,y*drawHeightWeapName,x*drawPosX,y*drawPosY,textColor,0.8,font)
	end	

	
	if not getElementData(getLocalPlayer(), "Watch") then
		return
    end
	
	if getElementData(getLocalPlayer(),"Watch") >= 1 then
       local hour, minutes = getTime()
	   dxDrawBorderedText(1, ""..string.format("%02d",hour)..":"..string.format("%02d",minutes), x*0.92,y*drawHeightWatch,x*drawPosX,y*drawPosY,textColor,0.8,font,"left","top",false,false,false)
    end	
end
addEventHandler("onClientRender",getRootElement(),hud)
addEventHandler("onClientPlayerSpawn",getRootElement(),hud)	


function dxDrawBorderedText (outline, text, left, top, right, bottom, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    local outline = (scale or 1) * (1.333333333333334 * (outline or 1))
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left - outline, top - outline, right - outline, bottom - outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left + outline, top - outline, right + outline, bottom - outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left - outline, top + outline, right - outline, bottom + outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left + outline, top + outline, right + outline, bottom + outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left - outline, top, right - outline, bottom, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left + outline, top, right + outline, bottom, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left, top - outline, right, bottom - outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left, top + outline, right, bottom + outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text, left, top, right, bottom, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
end
  

 

Edited by Gabriel1375
Link to comment
local x, y = guiGetScreenSize()
local font = dxCreateFont('strangerbackinthenight.ttf', 25, false, 'proof') or 'bankgothic' -- fallback to default
local textColor = tocolor(255,255,255,255)
local outlineColor = tocolor(0,0,0,255)

-- custom valores
local drawWidth = 0.5
local drawHeight = 0.94
local drawPosX = 9.1
local drawPosY = 367.0
local drawHeightWeapName = 0.91
local drawHeightWatch = 0.1

function hud ( )
	clip = getPedAmmoInClip ( getLocalPlayer() )
	totalammo = getPedTotalAmmo ( getLocalPlayer() )
	weapon = getPedWeapon( getLocalPlayer() )
    --auto = getPedWeapon( getLocalPlayer() )	
    setPlayerHudComponentVisible ("weapon", false )
    setPlayerHudComponentVisible ("ammo", false)
    setPlayerHudComponentVisible ("clock", false)
	
	if weapon == 0 or weapon == 46 then return end
	local arma = getElementData(getLocalPlayer(), "currentweapon_1")
	local arma2 = getElementData(getLocalPlayer(), "currentweapon_2")
	local arma3 = getElementData(getLocalPlayer(), "currentweapon_3")	
	
    if weapon == 25 or weapon == 26 or weapon == 27 or weapon == 30 or weapon == 31 or weapon == 33 or weapon == 34 then
		dxDrawBorderedText(1, ""..clip.." / "..totalammo, x*drawWidth,y*drawHeight,x*drawPosX,y*drawPosY,textColor,0.8,font,"center","top",false,false,false)
		dxDrawBorderedText(1, arma, x*drawWidth,y*drawHeightWeapName,x*drawPosX,y*drawPosY,textColor,0.8,font)
	end
    if weapon == 0 or weapon == 1 or weapon == 2 or weapon == 3 or weapon == 4 or weapon == 5 or weapon == 6 or weapon == 7 or weapon == 8 or weapon == 9 then
		dxDrawBorderedText(1, arma2, x*drawWidth,y*drawHeightWeapName,x*drawPosX,y*drawPosY,textColor,0.8,font)
	end
    if weapon == 22 or weapon == 23 or weapon == 24 or weapon == 28 or weapon == 29 or weapon == 43 then
		dxDrawBorderedText(1, ""..clip.." / "..totalammo, x*drawWidth,y*drawHeight,x*drawPosX,y*drawPosY,textColor,0.8,font,"center","top",false,false,false)
		dxDrawBorderedText(1, arma2, x*drawWidth,y*drawHeightWeapName,x*drawPosX,y*drawPosY,textColor,0.8,font)
	end
    if weapon == 16 or weapon == 17 then
		dxDrawBorderedText(1, ""..clip.." / "..totalammo, x*drawWidth,y*drawHeight,x*drawPosX,y*drawPosY,textColor,0.8,font,"center","top",false,false,false)
		dxDrawBorderedText(1, arma3, x*drawWidth,y*drawHeightWeapName,x*drawPosX,y*drawPosY,textColor,0.8,font)
	end	

	
	if not getElementData(getLocalPlayer(), "Watch") then
		return
    end
	
	if getElementData(getLocalPlayer(),"Watch") >= 1 then
       local hour, minutes = getTime()
	   dxDrawBorderedText(1, ""..string.format("%02d",hour)..":"..string.format("%02d",minutes), x*0.92,y*drawHeightWatch,x*drawPosX,y*drawPosY,textColor,0.8,font,"left","top",false,false,false)
    end	
end
addEventHandler("onClientRender",getRootElement(),hud)
addEventHandler("onClientPlayerSpawn",getRootElement(),hud)	


function dxDrawBorderedText (outline, text, left, top, right, bottom, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    local outline = (scale or 1) * (1.333333333333334 * (outline or 1))
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left - outline, top - outline, right - outline, bottom - outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left + outline, top - outline, right + outline, bottom - outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left - outline, top + outline, right - outline, bottom + outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left + outline, top + outline, right + outline, bottom + outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left - outline, top, right - outline, bottom, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left + outline, top, right + outline, bottom, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left, top - outline, right, bottom - outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left, top + outline, right, bottom + outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text, left, top, right, bottom, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
end
  

Test it

Link to comment
8 minutes ago, FabianRs said:

local x, y = guiGetScreenSize()
local font = dxCreateFont('strangerbackinthenight.ttf', 25, false, 'proof') or 'bankgothic' -- fallback to default
local textColor = tocolor(255,255,255,255)
local outlineColor = tocolor(0,0,0,255)

-- custom valores
local drawWidth = 0.5
local drawHeight = 0.94
local drawPosX = 9.1
local drawPosY = 367.0
local drawHeightWeapName = 0.91
local drawHeightWatch = 0.1

function hud ( )
	clip = getPedAmmoInClip ( getLocalPlayer() )
	totalammo = getPedTotalAmmo ( getLocalPlayer() )
	weapon = getPedWeapon( getLocalPlayer() )
    --auto = getPedWeapon( getLocalPlayer() )	
    setPlayerHudComponentVisible ("weapon", false )
    setPlayerHudComponentVisible ("ammo", false)
    setPlayerHudComponentVisible ("clock", false)
	
	if weapon == 0 or weapon == 46 then return end
	local arma = getElementData(getLocalPlayer(), "currentweapon_1")
	local arma2 = getElementData(getLocalPlayer(), "currentweapon_2")
	local arma3 = getElementData(getLocalPlayer(), "currentweapon_3")	
	
    if weapon == 25 or weapon == 26 or weapon == 27 or weapon == 30 or weapon == 31 or weapon == 33 or weapon == 34 then
		dxDrawBorderedText(1, ""..clip.." / "..totalammo, x*drawWidth,y*drawHeight,x*drawPosX,y*drawPosY,textColor,0.8,font,"center","top",false,false,false)
		dxDrawBorderedText(1, arma, x*drawWidth,y*drawHeightWeapName,x*drawPosX,y*drawPosY,textColor,0.8,font)
	end
    if weapon == 0 or weapon == 1 or weapon == 2 or weapon == 3 or weapon == 4 or weapon == 5 or weapon == 6 or weapon == 7 or weapon == 8 or weapon == 9 then
		dxDrawBorderedText(1, arma2, x*drawWidth,y*drawHeightWeapName,x*drawPosX,y*drawPosY,textColor,0.8,font)
	end
    if weapon == 22 or weapon == 23 or weapon == 24 or weapon == 28 or weapon == 29 or weapon == 43 then
		dxDrawBorderedText(1, ""..clip.." / "..totalammo, x*drawWidth,y*drawHeight,x*drawPosX,y*drawPosY,textColor,0.8,font,"center","top",false,false,false)
		dxDrawBorderedText(1, arma2, x*drawWidth,y*drawHeightWeapName,x*drawPosX,y*drawPosY,textColor,0.8,font)
	end
    if weapon == 16 or weapon == 17 then
		dxDrawBorderedText(1, ""..clip.." / "..totalammo, x*drawWidth,y*drawHeight,x*drawPosX,y*drawPosY,textColor,0.8,font,"center","top",false,false,false)
		dxDrawBorderedText(1, arma3, x*drawWidth,y*drawHeightWeapName,x*drawPosX,y*drawPosY,textColor,0.8,font)
	end	

	
	if not getElementData(getLocalPlayer(), "Watch") then
		return
    end
	
	if getElementData(getLocalPlayer(),"Watch") >= 1 then
       local hour, minutes = getTime()
	   dxDrawBorderedText(1, ""..string.format("%02d",hour)..":"..string.format("%02d",minutes), x*0.92,y*drawHeightWatch,x*drawPosX,y*drawPosY,textColor,0.8,font,"left","top",false,false,false)
    end	
end
addEventHandler("onClientRender",getRootElement(),hud)
addEventHandler("onClientPlayerSpawn",getRootElement(),hud)	


function dxDrawBorderedText (outline, text, left, top, right, bottom, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    local outline = (scale or 1) * (1.333333333333334 * (outline or 1))
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left - outline, top - outline, right - outline, bottom - outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left + outline, top - outline, right + outline, bottom - outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left - outline, top + outline, right - outline, bottom + outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left + outline, top + outline, right + outline, bottom + outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left - outline, top, right - outline, bottom, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left + outline, top, right + outline, bottom, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left, top - outline, right, bottom - outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left, top + outline, right, bottom + outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text, left, top, right, bottom, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
end
  

Test it

Now the clip text doesn't show at all

 

EDIT:

Hey, thank you very much, think i solved it, the problem was that my width was too large, so when it goes to the center instead of the left alignment it, then it was drawing outside of the screen, thank you so much !!

Edited by Gabriel1375
SOLVED
Link to comment

try this

local x, y = guiGetScreenSize()
local font = dxCreateFont('strangerbackinthenight.ttf', 25, false, 'proof') or 'bankgothic' -- fallback to default
local textColor = tocolor(255,255,255,255)
local outlineColor = tocolor(0,0,0,255)

-- custom valores
local drawWidth = 0.5
local drawHeight = 0.94
local drawPosX = 9.1
local drawPosY = 367.0
local drawHeightWeapName = 0.91
local drawHeightWatch = 0.1

function hud ( )
	clip = getPedAmmoInClip ( getLocalPlayer() )
	totalammo = getPedTotalAmmo ( getLocalPlayer() )
	weapon = getPedWeapon( getLocalPlayer() )
    --auto = getPedWeapon( getLocalPlayer() )	
    setPlayerHudComponentVisible ("weapon", false )
    setPlayerHudComponentVisible ("ammo", false)
    setPlayerHudComponentVisible ("clock", false)
	
	if weapon == 0 or weapon == 46 then return end
	local arma = getElementData(getLocalPlayer(), "currentweapon_1")
	local arma2 = getElementData(getLocalPlayer(), "currentweapon_2")
	local arma3 = getElementData(getLocalPlayer(), "currentweapon_3")	
	
    if weapon == 25 or weapon == 26 or weapon == 27 or weapon == 30 or weapon == 31 or weapon == 33 or weapon == 34 then
		dxDrawBorderedText(1, ""..clip.." / "..totalammo, x*drawWidth,y*drawHeight,x*drawPosX,y*drawPosY,textColor,0.8,font,"center","top",false,false,false)
		dxDrawBorderedText(1, arma, x*drawWidth,y*drawHeightWeapName,x*drawPosX,y*drawPosY,textColor,0.8,font,"center","top")
	end
    if weapon == 0 or weapon == 1 or weapon == 2 or weapon == 3 or weapon == 4 or weapon == 5 or weapon == 6 or weapon == 7 or weapon == 8 or weapon == 9 then
		dxDrawBorderedText(1, arma2, x*drawWidth,y*drawHeightWeapName,x*drawPosX,y*drawPosY,textColor,0.8,font,"center","top")
	end
    if weapon == 22 or weapon == 23 or weapon == 24 or weapon == 28 or weapon == 29 or weapon == 43 then
		dxDrawBorderedText(1, ""..clip.." / "..totalammo, x*drawWidth,y*drawHeight,x*drawPosX,y*drawPosY,textColor,0.8,font,"center","top",false,false,false)
		dxDrawBorderedText(1, arma2, x*drawWidth,y*drawHeightWeapName,x*drawPosX,y*drawPosY,textColor,0.8,font,"center","top")
	end
    if weapon == 16 or weapon == 17 then
		dxDrawBorderedText(1, ""..clip.." / "..totalammo, x*drawWidth,y*drawHeight,x*drawPosX,y*drawPosY,textColor,0.8,font,"center","top",false,false,false)
		dxDrawBorderedText(1, arma3, x*drawWidth,y*drawHeightWeapName,x*drawPosX,y*drawPosY,textColor,0.8,font,"center","top")
	end	

	
	if not getElementData(getLocalPlayer(), "Watch") then
		return
    end
	
	if getElementData(getLocalPlayer(),"Watch") >= 1 then
       local hour, minutes = getTime()
	   dxDrawBorderedText(1, ""..string.format("%02d",hour)..":"..string.format("%02d",minutes), x*0.92,y*drawHeightWatch,x*drawPosX,y*drawPosY,textColor,0.8,font,"left","top",false,false,false)
    end	
end
addEventHandler("onClientRender",getRootElement(),hud)
addEventHandler("onClientPlayerSpawn",getRootElement(),hud)	


function dxDrawBorderedText (outline, text, left, top, right, bottom, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    local outline = (scale or 1) * (1.333333333333334 * (outline or 1))
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left - outline, top - outline, right - outline, bottom - outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left + outline, top - outline, right + outline, bottom - outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left - outline, top + outline, right - outline, bottom + outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left + outline, top + outline, right + outline, bottom + outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left - outline, top, right - outline, bottom, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left + outline, top, right + outline, bottom, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left, top - outline, right, bottom - outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left, top + outline, right, bottom + outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
    dxDrawText (text, left, top, right, bottom, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY)
end
  

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...