
iSpark
Members-
Posts
24 -
Joined
-
Last visited
Everything posted by iSpark
-
Search in Community.mtasa.com
-
I have a Win text color With dxDrawText for Be Colored i need edit textlib
-
dxDrawText(self.strText, l + shadowDist, t + shadowDist, r + shadowDist, b + shadowDist, tocolor(att2, att3, att4, att5), self.fScale, self.strFont, self.bHorizontalAlign, self.bVerticalAlign, self.bClip, self.bWordWrap, self.bPostGUI,true ) end dxDrawText ( self.strText, l, t, r, b, tocolor(unpack(self.tColor)), self.fScale, self.strFont, self.bHorizontalAlign, self.bVerticalAlign, self.bClip, self.bWordWrap, self.bPostGUI,true ) break end end end ) I change dxDrawText colorcode to true .. Something wrong ? Heelp plz
-
I fix the meta.xml but the font.tff not fixed in Client.
-
srfont = dxCreateFont("font.ttf",13) g_GuiLabel = { } function GuiShow() if g_Settings.Visible then g_GuiLabel.Speed:visible(true) g_GuiLabel.Unit:visible(true) end end addEventHandler("onClientScreenFadedIn", root, GuiShow) function GuiHide() g_GuiLabel.Speed:visible(false) g_GuiLabel.Unit:visible(false) end addEventHandler("onClientScreenFadedOut", root, GuiHide) function GuiInitialize() local screenWidth, screenHeight = guiGetScreenSize() g_GuiLabel.Speed = dxText:create("0", screenWidth-72, screenHeight - 36, false, "srfont", 2, "right") g_GuiLabel.Speed:type("stroke", 3, 0, 0, 0, 255) g_GuiLabel.Speed:color(0,170,255,255) g_GuiLabel.Unit = dxText:create("", screenWidth-64, screenHeight - 28, false, "srfont", 1, "left") g_GuiLabel.Unit:type("stroke", 2, 0, 0, 0, 255) g_GuiLabel.Unit:color(255,255,255,255) GuiHide() end GuiInitialize() Not Work im trying to Change the font but not work.
-
local screen_width, screen_height = guiGetScreenSize() local RESPAWN_KEY = "space" local showRespawn = false dxDrawText = "#FF5500Press #808080"..RESPAWN_KEY.." #FF5500to respawn" dxDrawRectangle ( x/3.8, y/3.8, x/2.02, y/2, tocolor ( 0, 0, 0, 150 ) local scale = 1.5 local font = "arial" local textWidth = dxGetTextWidth(text:gsub("#%x%x%x%x%x%x", ""), scale, font) local fontHeight = dxGetFontHeight(scale, font) local color = tocolor(255, 128, 0, 255) setElementData(getLocalPlayer(), "respawn.playing", false, true) local running = false local vehicleData = {} local SAVE_INTER = 22500 local saveTimer = nil local reset = true -- reset timer local lastSaved = 0
-
I try but The Code not work
-
Hey how can i add a dxDrawRectangle To that Text Lua local screen_width, screen_height = guiGetScreenSize() local RESPAWN_KEY = "space" local showRespawn = false local text = "#FF5500Press #808080"..RESPAWN_KEY.." #FF5500to respawn" local scale = 1.5 local font = "arial" local textWidth = dxGetTextWidth(text:gsub("#%x%x%x%x%x%x", ""), scale, font) local fontHeight = dxGetFontHeight(scale, font) local color = tocolor(255, 128, 0, 255) setElementData(getLocalPlayer(), "respawn.playing", false, true) local running = false local vehicleData = {} local SAVE_INTER = 22500 local saveTimer = nil local reset = true -- reset timer local lastSaved = 0 Thank's
-
function guiToggleVisible ( ) if not PanelOpened then PanelOpened = 1 if guiGetVisible ( Panel ) == true then addEventHandler ( "onClientRender", gRoot, HideWindow) showCursor ( false ) guiSetInputEnabled ( false ) if UserDataChanged then saveUserData() end UserDataChanged = nil else refreshPanelData(getLocalPlayer()) guiSetVisible ( Panel, true ) guiSetVisible ( PanelImage, true ) addEventHandler ( "onClientRender", gRoot, ShowWindow) guiGridListClear ( PlayersListGUI ) for id, playeritem in ipairs(getElementsByType("player")) do if playeritem == getLocalPlayer() then else local row = guiGridListAddRow ( PlayersListGUI ) guiGridListSetItemText ( PlayersListGUI, row, playerListColumnGUI, string.gsub(getPlayerName ( playeritem ),"#%x%x%x%x%x%x",""), false, false ) end end end end end EDIT
-
Help plz I have a userpanel i change the bind F7 to U ... So When i press U it's open But when i won't to close i can't close it .. bindKey("u","down",guiToggleVisible) callServerFunction("ClientStarted",getLocalPlayer()) addEventHandler ( "onClientGUIClick", gRoot, Buttons )