Jump to content

WhoAmI

Members
  • Posts

    1,248
  • Joined

  • Last visited

Everything posted by WhoAmI

  1. luac.multitheftauto.com
  2. luac.multitheftauto.com
  3. How much would I have to wait to set up a VPS after payment?
  4. viewtopic.php?f=91&t=71784 maybe that would help you
  5. Just add extra dxDrawText with same values, but x, y position +1, +1 colored black.
  6. I edited my code. Serverside only.
  7. Try this blips = { } addEventHandler ( "onPlayerJoin", root, function () blips [ source ] = createBlipAttachedTo ( source, 26 ) end ) addEventHandler ( "onPlayerQuit", root, function () if ( blips and isElement ( blips [ source ] ) ) then destroyElement ( blips [ source ] ) end end )
  8. function DXdraw() --Variables local screenWidth, screenHeight = guiGetScreenSize ( ) setTimer(function() triggerServerEvent("online",getLocalPlayer()) end, 10000, 1, true) local ping = getPlayerPing ( localPlayer ) dxDrawText(tostring(ping), 0, screenHeight - 190, screenWidth, screenHeight,tocolor(128, 255, 0, 255),0.7,"bankgothic") dxDrawText("Ping:", 0, screenHeight - 190, screenWidth, screenHeight,tocolor(255, 255, 255, 255),0.7,"bankgothic") end addEventHandler("onClientRender", getRootElement(), DXdraw) You just need to change position in 2nd text.
  9. Well, you can't save element to element data.
  10. Errors? And you are sure that dxGUI is started?
  11. How you are creating a blip?
  12. Isn't it? You are just setting timer 50 times in 1 second. You can do this once in 10 seconds or even more.
  13. local screenWidth, screenHeight = guiGetScreenSize ( ) setTimer ( function ( ) triggerServerEvent("online", localPlayer) end , 10000, 0) function DXdraw() local ping = getPlayerPing ( localPlayer ) g_dxGUI = { ping = dxText:create("PING: ", screenWidth - 202,screenHeight - 86, false, 'bankgothic', 0.7), pingNumber = dxText:create(ping, screenWidth - 150,screenHeight - 86, false, 'bankgothic', 0.7) } g_dxGUI.ping:color(255, 255, 255, 255) g_dxGUI.pingNumber:color(128,255,0,255) g_dxGUI.ping:type("shadow", 1, 0, 0, 0, 255) g_dxGUI.pingNumber:type("shadow", 1, 0, 0, 0, 255) end Check this out. But are you sure that you want trigger server event every frame? This function is turning on 30-60 times per second. I put this timer before the function.
  14. Show us your code with onClientGUIClick.
  15. Well, isn't it better to use db functions? And create your own database in file which you could look in. I'm actually using SQLite Manager - an addon for my browser, where i can load my database and look into it. Also i'm working on .sqlite files, not .db, which is my opinion better. If you want to use my sultion download SQLite Manage from there: https://addons.mozilla.org/pl/firefox/a ... e-manager/ And to turn it by writing on the website bar following code: chrome://sqlitemanager/content/sqlitemanager.xul or in Windows's start firefox -chrome chrome://sqlitemanager/content/sqlitemanager.xul
  16. onClientMouseEnter onClientMouseLeave onClientGUIClick guiCreateStaticImage
  17. Normally. For example blips = { } -- creating a table function addBlip ( player ) blips[ player ] = "this is a blip" -- inserting to the table "this is a blip" with player as key end addCommandHandler ( "addblip", addBlip ) And then function removeBlip ( player ) blips[ player ] = nil -- removing "this is a blip" from table saved in player as key end addCommandHandler ( "removeblip", removeblip ) /addblip would insert "this a blip" into table /removeblip would delete it from table.
  18. WhoAmI

    help gui

    You are welcome.
  19. WhoAmI

    help gui

    buttons = { } function panel ( ) buttons[1] = guiCreateButton ( 503, 182, 89, 40, "", false ) guiSetVisible ( buttons[1], true ) guiSetAlpha ( buttons[1], 1 ) addEventHandler ( "onClientRender", root, draw ) end addEvent ( "panel", true ) addEventHandler ( "panel", root, panel ) function qpanel() if ( source == buttons[1] ) then if ( guiGetVisible ( buttons[1] ) ) then guiSetVisible ( buttons[1], false ) removeEventHandler ( "onClientRender", root, draw ) end end end addEventHandler ( "onClientGUIClick", resourceRoot, qpanel ) This is it. In guiSetAlpha the maximal amount of 2nd argument is 1.
  20. WhoAmI

    help gui

    Buttton is showing?
  21. WhoAmI

    help gui

    buttons = { } function panel() buttons[1] = guiCreateButton(503, 182, 89, 40, "", false) guiSetVisible ( buttons[1], true ) guiSetAlpha(buttons[1], 100) addEventHandler("onClientRender", root, draw) end addEvent("panel", true) addEventHandler("panel", getRootElement(), panel) function qpanel() if ( source == buttons[1] and guiGetVisible (buttons[1]) ) then guiSetVisible(buttons[1], false) removeEventHandler("onClientRender", root, draw) end end addEventHandler("onClientGUIClick", buttons[1], qpanel) Check this out.
  22. WhoAmI

    [HELP] Line Break

    Isn't it better to set wordbreak to true? dxDrawText(text1, 269, 171, 100, 100, tocolor(0, 0, 0, 127), 1, "sans", "left", "top", false, true, true)
  23. What about root in 2nd argument of onClientPlayerDamage event?
×
×
  • Create New...