Jump to content

TheDeftGamer

Members
  • Content Count

    24
  • Joined

  • Last visited

Community Reputation

0 Neutral

About TheDeftGamer

  • Rank
    Civilian

Details

  • Gang
    Weapons Dealer
  1. This is a great race map!!! I love all the triggered events and even the glow checkpoints. It just found a home on the -]alw[- RPG Racing server!!! Hope you stop by and give it a spin with us! If you have anymore maps i would love to give them all a spin.
  2. taalasma, that was perfect! local Localplayer = getPlayerName(getLocalPlayer()) Label_PlayerName = guiCreateLabel(15,8,428,53,Localplayer,false,GUIEditor_Tab[1]) guiLabelSetColor(Label_PlayerName,255,255,255) guiLabelSetVerticalAlign(Label_Playername,"top") guiLabelSetHorizontalAlign(Label_Playername,"left",false) guiSetFont(Label_PlayerName,"sa-header") Thank you guys very much for the help, stop by the alw race server and see your help in action sometime!
  3. Sadly that did not work. I also had to remove the . because that made the entire window screw up lol. so now it looks like this: local Localplayer = getPlayerName(getLocalPlayer()) Label_PlayerName = guiCreateLabel(14,8,428,53,LocalPlayer,false,GUIEditor_Tab[1]) guiLabelSetColor(Label_PlayerName,255,255,255) guiLabelSetVerticalAlign(Label_Playername,"top") guiLabelSetHorizontalAlign(Label_Playername,"left",false) guiSetFont(Label_PlayerName,"sa-header") still isnt working.. this is hard to understand. all the wiki tutorials do is tell you how to get teh name output on the chatbox a
  4. okay so ive made a gui window and i created a label which makes text show up which says UserNameHere So, this is where i want a persons user name to show up. So when you press a key, the window opens, and you see your name on the very top left. Label_PlayerName = guiCreateLabel(14,8,428,53,"UserNameHere",false,GUIEditor_Tab[1]) guiLabelSetColor(Label_PlayerName,255,255,255) guiLabelSetVerticalAlign(Label_Playername,"top") guiLabelSetHorizontalAlign(Label_Playername,"left",false) guiSetFont(Label_PlayerName,"sa-header") So how do i do this? I've been making alot of progress with lea
  5. Hi, i recently figured out how to move and reshape the healthbar, so now im wondering how can i move: The race position The checkpoint's remaining time spent on map (basically everything in the lower right corner of a race hud) I dont know which files to edit, im sure i can alter them as needed but im having a hard time figuring out where.
  6. I got the keybinds working too! --It is kept within a function to output as a onClientResourceStart arguement function createGUI() bindKey("F6","down",OpenStatusWindow) --This is the output code provided by the guieditor resource by R3mp GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {}
  7. - You don't want to hide GUI and show cursor (you want to hide it when you hide window). - Also, you need GUI element as first argument in guiSetVisible. - You also, don't need 2nd argument in showCursor since by default it's true. So many "errors" in such short code. function OpenStatusWindow() guiSetVisible( GUIEditor_Window[1], not guiGetVisible( GUIEditor_Window[1] ) ) showCursor( guiGetVisible( GUIEditor_Window[1] ) ) end YES ! It worked great! Thank you guys very much for this. It's very difficult to learn this stuff but i think i get the idea. I need to learn quite abit more
  8. UPDATE: /Status now opens the window!!!!! Here is the code so far: --This is the code for the status gui --The following code programs /status to open the gui window function OpenStatusWindow() guiSetVisible(GUIEditor_Window[1],true) showCursor(true,true) end addCommandHandler("status",OpenStatusWindow) --This is the output code provided by the guieditor resource by R3mp --It is kept within a function to output as a onClientResourceStart arguement function createGUI() GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEdit
  9. UPDATE: I removed the type="gamemode" from the meta. <meta> <info author="-]alw[-Deftones" name="Status" description="A status page used to display stats"/> <script src="statusgui.lua" type="client"/> meta> ... and now the window shows up, now. yippie!!! But, it opens by default when i join the server, which is not quite right yet. I feel like im getting closer.
  10. okay sorry about that. i've made the adjustment you suggested. Stilll nada. here is my complete lua code: --This is the code for the status gui --The following code programs /status to open the gui window function OpenStatusWindow() guiSetVisible(GUIEditor_Window[1],true) showCursor(true,true) end addCommandHandler("status",OpenStatusWindow) --This is the output code provided by the guieditor resource by R3mp GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(324,162,673,753,"MainTi
  11. Still no dice.. /status .. still does nothing =( -bangs face with frying pan.
  12. For anyone out there, i have tried using the mta wiki scripting tutorials but i am lost. let me start from the top... I made a very simple gui using the resource "guieditor". It's really neat and easy to use but when it saves it's code you have to do some manual work to get it up and running. This is regarding the status page im trying to make. *I made a folder named "status" *inside is a file i made called meta.xml which contains the following: ------------------------------------------------------------------------------------ *i made a file called statusgui.lua whic
  13. Im sorry im bugging you, i think i should take a step back and start from scratch. i'm obviously the one doing something wrong. I will learn the basics of scripting the gui and everything and then learn how to use your program to steamline the process once i get to that level. my own noobish desire asks for 2 things in a future update to help us noobies. 1. auto output as a lua file. 2. a setting allowing you to load a gui by file name. 3. a setting to allow the window to be opened by keypress which would also be saved in the lua, like commandhandler etc. i dunno. but i am sorry to bug
  14. Its loading the gui i pick just fine. I can alter the gui and add elements like buttons and labels etc... the problem is i cant output the code anywhere. If i start from scrach with a gui and i right click off of that window i get the option to output the code. But i just dont get that option with a gui i loaded with loadgui. If i do print date: it just tells me: (in console) ----------- Relative ----------- x: 0.0000 y: 0.0000 width: 1.0000 height: 1.0000 ----------- Absolute ----------- x: 0.0000 y: 0.0000 width: 1280.0000 height: 960.0000 so i tried using /guioutput but that
  15. okay but why wont "guieditor" let me output the code after i used to loadgui command? i tried using /guioutput but the txt file only makes a 1-line of text iin the txt file that is no where long enough to program an entire gui =(
×
×
  • Create New...