Jump to content

KraZ

Members
  • Posts

    61
  • Joined

  • Last visited

Everything posted by KraZ

  1. KraZ

    Help again.

    also i know i preffer you not to do it for me because i wont learn nothing and i want to learn lua, badly thanks for the link. when i create a gridlist, i have to create a colum but then i have to create a row, when i try to change the title of the row it doesnt change, any reason why not?
  2. KraZ

    Help again.

    And? I use peoples scripts on here all the time, if you dont want people to use your scripts then DON'T post them. i think you got it wrong Xeno, i mean i created the GUI posted my gui and he scripted it for me
  3. KraZ

    Help again.

    What?!#@#"$*! Ah Jeez, i dont mean to sound rude but i dont really like asking people to do stuff for me because i wont learn anything, i am greatfull for people helping me dont get me wrong but i do want to learn so i can do it my self. where can i find all the skin ID's?
  4. KraZ

    Help again.

    also i have created the gui for it, but all the gui has is a window and button, no place to select skins so how the heck do you get this to work? like how do you know which codes and stuff to put where? please help, im nearly crying thats how sad i am its so complicated and so hard, but when you understand its easy, so if you could just teach me or some sort plz
  5. KraZ

    Help again.

    i know, i should really put your name somewhere for helping, well anyways xeno i have no idea on how to lua i did try looking at your login system to see if i could see how you did it i think ive spent like 3 hours trying to get this to work, so can one of you guys give me a live tutorial? or even a video?
  6. KraZ

    Help again.

    Im depending on the MTA Community too much and i really want someone to teach me lua, through skype or team viewer or something but if someone could just post below id be real thankfull, Also heres what im trying to make, im trying to make it so when people register an account on my server, when they login they will have a gui where they can change their skin but this is only for people who have never joined before, who just registered, if someone can fix my code i dont know what i did but thank you in advance or if you don't want to you could teach me how to while going through it your self? and if you could add some guide lines for me too look through telling me which lines do which, not tons of them but some.. addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor_Label = {} chooseskin_window = guiCreateWindow(384,52,208,513,"Choose a skin!",false) Done_button = guiCreateButton(0.2788,0.8869,0.4423,0.0955,"Done!",true,chooseskin_window) guiSetFont(Done_button,"default-bold-small") showCursor(true) end function() GUIEditor_Memo = {} Login_window = guiCreateWindow(191,106,422,357,"Login/Register",false) guiSetInputEnabled (true) -- Disables all other keys like Chat while logging in! showCursor(true) guiWindowSetMovable(Login_window,false) guiWindowSetSizable(Login_window,false) KraZWorld_image = guiCreateStaticImage(0.0853,0.0504,0.8152,0.381,"images/KraZWorld.png",true,Login_window) Username_label = guiCreateLabel(0.0711,0.4594,0.1635,0.0504,"Username:",true,Login_window) guiLabelSetColor(Username_label,255,255,255) guiLabelSetVerticalAlign(Username_label,"top") guiLabelSetHorizontalAlign(Username_label,"left",false) Username_edit = guiCreateEdit(0.2393,0.4538,0.6825,0.0672,"",true,Login_window) Password_label = guiCreateLabel(0.0711,0.5854,0.1777,0.0616,"Password:",true,Login_window) guiLabelSetColor(Password_label,255,255,255) guiLabelSetVerticalAlign(Password_label,"top") guiLabelSetHorizontalAlign(Password_label,"left",false) Password_edit = guiCreateEdit(0.2393,0.5742,0.6825,0.0728,"",true,Login_window) guiEditSetMasked (Password_edit, true) -- Masks the pass box with ***** Login_button = guiCreateButton(0.1303,0.6975,0.3649,0.1513,"Login",true,Login_window) guiSetFont(Login_button,"clear-normal") Register_button = guiCreateButton(0.5355,0.6975,0.3649,0.1513,"Register",true,Login_window) guiSetFont(Register_button,"clear-normal") Info_label = guiCreateLabel(0.2938,0.8768,0.436,0.056,"Register an account and login!",true,Login_window) guiLabelSetColor(Info_label,255,255,255) guiLabelSetVerticalAlign(Info_label,"top") guiLabelSetHorizontalAlign(Info_label,"left",false) Register_Window = guiCreateWindow(619,105,178,358,"Register",false) guiSetVisible(Register_Window,false) guiWindowSetSizable(Register_Window,false) RegisterUsername_Label = guiCreateLabel(0.3371,0.1201,0.3989,0.0503,"Username:",true,Register_Window) guiLabelSetColor(RegisterUsername_Label,255,255,255) guiLabelSetVerticalAlign(RegisterUsername_Label,"top") guiLabelSetHorizontalAlign(RegisterUsername_Label,"left",false) RegisterUsername_edit = guiCreateEdit(0.0506,0.1872,0.8989,0.067,"",true,Register_Window) RegisterPassword_label = guiCreateLabel(0.3371,0.2821,0.4326,0.0587,"Password:",true,Register_Window) guiLabelSetColor(RegisterPassword_label,255,255,255) guiLabelSetVerticalAlign(RegisterPassword_label,"top") guiLabelSetHorizontalAlign(RegisterPassword_label,"left",false) RegisterPassword_edit = guiCreateEdit(0.0506,0.3408,0.8876,0.0726,"",true,Register_Window) guiEditSetMasked (RegisterPassword_edit, true) -- Masks the pass box with ***** GUIEditor_Memo[1] = guiCreateMemo(113,-540,5,411,"",false,Register_Window) NOTE_Label = guiCreateLabel(0.1348,0.0587,0.764,0.0503,"[NOTE] Case Sensitive!",true,Register_Window) guiLabelSetColor(NOTE_Label,255,255,255) guiLabelSetVerticalAlign(NOTE_Label,"top") guiLabelSetHorizontalAlign(NOTE_Label,"left",false) RegisterRegister_Button = guiCreateButton(0.1348,0.4413,0.736,0.1173,"Register!",true,Register_Window) S1_Label = guiCreateLabel(0.0618,0.5726,0.8371,0.0503,"We Are Not Resposible for:",true,Register_Window) guiLabelSetColor(S1_Label,255,255,255) guiLabelSetVerticalAlign(S1_Label,"top") guiLabelSetHorizontalAlign(S1_Label,"left",false) S2_Label = guiCreateLabel(0.2528,0.6229,0.5169,0.0475,"Lost Passwords,",true,Register_Window) guiLabelSetColor(S2_Label,255,255,255) guiLabelSetVerticalAlign(S2_Label,"top") guiLabelSetHorizontalAlign(S2_Label,"left",false) S3_Label = guiCreateLabel(0.2079,0.6704,0.7416,0.095,"Hacked Accounts,",true,Register_Window) guiLabelSetColor(S3_Label,255,255,255) guiLabelSetVerticalAlign(S3_Label,"top") guiLabelSetHorizontalAlign(S3_Label,"left",false) S4_label = guiCreateLabel(0.0506,0.7374,0.9101,0.0419,"We suggest to prevent this",true,Register_Window) guiLabelSetColor(S4_label,255,255,255) guiLabelSetVerticalAlign(S4_label,"top") guiLabelSetHorizontalAlign(S4_label,"left",false) S5_Label = guiCreateLabel(0.0506,0.7793,0.8708,0.067,"by signing up to the forums",true,Register_Window) guiLabelSetColor(S5_Label,255,255,255) guiLabelSetVerticalAlign(S5_Label,"top") guiLabelSetHorizontalAlign(S5_Label,"left",false) S6_Label = guiCreateLabel(0.0506,0.8212,0.9438,0.0391,"with the same username and",true,Register_Window) guiLabelSetColor(S6_Label,255,255,255) guiLabelSetVerticalAlign(S6_Label,"top") guiLabelSetHorizontalAlign(S6_Label,"left",false) S7_Label = guiCreateLabel(0.0506,0.8687,0.8989,0.0475,"If you forget your password",true,Register_Window) guiLabelSetColor(S7_Label,255,255,255) guiLabelSetVerticalAlign(S7_Label,"top") guiLabelSetHorizontalAlign(S7_Label,"left",false) S8_Label = guiCreateLabel(0.0393,0.9162,0.882,0.0559,"You will be able to retrive it",true,Register_Window) guiLabelSetColor(S8_Label,255,255,255) guiLabelSetVerticalAlign(S8_Label,"top") guiLabelSetHorizontalAlign(S8_Label,"left",false) end ) addEventHandler("onClientGUIClick",getRootElement(), function() if source == Login_button then -- Checks if the login button was clicked! local getUsernameField = guiGetText(Username_edit) -- Gets the username box data when clicking login! local getPasswordField = guiGetText(Password_edit) -- Gets the password box data when clicking login! if getUsernameField and getPasswordField then -- Checks if data was successfully recieved from the fields! triggerServerEvent("loginFromClient", getLocalPlayer(), getUsernameField, getPasswordField) -- Sent username and password data to serverside! end end if source == RegisterRegister_Button then -- Checks if the register button was clicked! local getUsernameField1 = guiGetText(RegisterUsername_edit) -- Gets the username box data when clicking register! local getPasswordField1 = guiGetText(RegisterPassword_edit) -- Gets the password box data when clicking register! if getUsernameField1 and getPasswordField1 then -- Checks if data was successfully recieved from the fields! triggerServerEvent("registerFromClient", getLocalPlayer(), getUsernameField1, getPasswordField1) -- Sent username and password data to serverside! guiSetVisible(Register_Window, false) guiSetVisible(chooseskin_window) true end end if source == Register_button then -- If the register button to show the window to register was clicked if guiGetVisible(Register_Window) == true then guiSetVisible(Register_Window, false) showCursor(true) elseif guiGetVisible(Register_Window) == false then guiSetVisible(Register_Window, true) showCursor(true) end end end ) function goRight(player) local newSkin = getElementModel (localPlayer) + 1 while not setElementModel (localPlayer,newSkin) do newSkin = newSkin + 1 end end function goLeft(player) local newSkin = getElementModel (localPlayer) - 1 while not setElementModel (localPlayer,newSkin) do newSkin = newSkin - 1 end end function SkinWindow_DoneButton if source == Done_button then guiSetVisible(chooseskin_window,false) showCursor(false) end addEvent("onClientLoginHide",true) addEventHandler("onClientLoginHide",getRootElement(), function() showCursor(false) guiSetVisible(Register_Window, false) guiSetVisible(Login_window, false) guiSetInputEnabled(false) end ) addEventHandler ( "onClientGUIClick",right,goRight, false ) addEventHandler ( "onClientGUIClick",done,Done_button, false ) addEventHandler ( "onClientGUIClick",left,goLeft, false )
  7. KraZ

    i need help :'(

    I just cant do what you guys do, anyone you can give me a presonal tutorial? like screen share and talk the same time? look i have followed the instructions on how to make a login screen but i tried making the login screen myself in guieditor, and i have no idea how to get it to start on server join, and how to link the edit boxes with the /login username password command, HELP ME! And please put down any SIMPLE tutorials that may help a beginner. heres my gui with no added commands or events. addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor_Memo = {} Login_window = guiCreateWindow(191,106,422,357,"Login/Register",false) guiWindowSetMovable(Login_window,false) guiWindowSetSizable(Login_window,false) KraZWorld_image = guiCreateStaticImage(0.0853,0.0504,0.8152,0.381,"images/KraZWorld.png",true,Login_window) Username_label = guiCreateLabel(0.0711,0.4594,0.1635,0.0504,"Username:",true,Login_window) guiLabelSetColor(Username_label,255,255,255) guiLabelSetVerticalAlign(Username_label,"top") guiLabelSetHorizontalAlign(Username_label,"left",false) Username_edit = guiCreateEdit(0.2393,0.4538,0.6825,0.0672,"",true,Login_window) Password_label = guiCreateLabel(0.0711,0.5854,0.1777,0.0616,"Password:",true,Login_window) guiLabelSetColor(Password_label,255,255,255) guiLabelSetVerticalAlign(Password_label,"top") guiLabelSetHorizontalAlign(Password_label,"left",false) Password_edit = guiCreateEdit(0.2393,0.5742,0.6825,0.0728,"",true,Login_window) Login_button = guiCreateButton(0.1303,0.6975,0.3649,0.1513,"Login",true,Login_window) guiSetFont(Login_button,"clear-normal") Register_button = guiCreateButton(0.5355,0.6975,0.3649,0.1513,"Register",true,Login_window) guiSetFont(Register_button,"clear-normal") Info_label = guiCreateLabel(0.2938,0.8768,0.436,0.056,"Register an account and login!",true,Login_window) guiLabelSetColor(Info_label,255,255,255) guiLabelSetVerticalAlign(Info_label,"top") guiLabelSetHorizontalAlign(Info_label,"left",false) Register_Window = guiCreateWindow(619,105,178,358,"Register",false) guiWindowSetSizable(Register_Window,false) RegisterUsername_Label = guiCreateLabel(0.3371,0.1201,0.3989,0.0503,"Username:",true,Register_Window) guiLabelSetColor(RegisterUsername_Label,255,255,255) guiLabelSetVerticalAlign(RegisterUsername_Label,"top") guiLabelSetHorizontalAlign(RegisterUsername_Label,"left",false) RegisterUsername_edit = guiCreateEdit(0.0506,0.1872,0.8989,0.067,"",true,Register_Window) RegisterPassword_label = guiCreateLabel(0.3371,0.2821,0.4326,0.0587,"Password:",true,Register_Window) guiLabelSetColor(RegisterPassword_label,255,255,255) guiLabelSetVerticalAlign(RegisterPassword_label,"top") guiLabelSetHorizontalAlign(RegisterPassword_label,"left",false) RegisterPassword_edit = guiCreateEdit(0.0506,0.3408,0.8876,0.0726,"",true,Register_Window) GUIEditor_Memo[1] = guiCreateMemo(113,-540,5,411,"",false,Register_Window) NOTE_Label = guiCreateLabel(0.1348,0.0587,0.764,0.0503,"[NOTE] Case Sensitive!",true,Register_Window) guiLabelSetColor(NOTE_Label,255,255,255) guiLabelSetVerticalAlign(NOTE_Label,"top") guiLabelSetHorizontalAlign(NOTE_Label,"left",false) RegisterRegister_Button = guiCreateButton(0.1348,0.4413,0.736,0.1173,"Register!",true,Register_Window) S1_Label = guiCreateLabel(0.0618,0.5726,0.8371,0.0503,"We Are Not Resposible for:",true,Register_Window) guiLabelSetColor(S1_Label,255,255,255) guiLabelSetVerticalAlign(S1_Label,"top") guiLabelSetHorizontalAlign(S1_Label,"left",false) S2_Label = guiCreateLabel(0.2528,0.6229,0.5169,0.0475,"Lost Passwords,",true,Register_Window) guiLabelSetColor(S2_Label,255,255,255) guiLabelSetVerticalAlign(S2_Label,"top") guiLabelSetHorizontalAlign(S2_Label,"left",false) S3_Label = guiCreateLabel(0.2079,0.6704,0.7416,0.095,"Hacked Accounts,",true,Register_Window) guiLabelSetColor(S3_Label,255,255,255) guiLabelSetVerticalAlign(S3_Label,"top") guiLabelSetHorizontalAlign(S3_Label,"left",false) S4_label = guiCreateLabel(0.0506,0.7374,0.9101,0.0419,"We suggest to prevent this",true,Register_Window) guiLabelSetColor(S4_label,255,255,255) guiLabelSetVerticalAlign(S4_label,"top") guiLabelSetHorizontalAlign(S4_label,"left",false) S5_Label = guiCreateLabel(0.0506,0.7793,0.8708,0.067,"by signing up to the forums",true,Register_Window) guiLabelSetColor(S5_Label,255,255,255) guiLabelSetVerticalAlign(S5_Label,"top") guiLabelSetHorizontalAlign(S5_Label,"left",false) S6_Label = guiCreateLabel(0.0506,0.8212,0.9438,0.0391,"with the same username and",true,Register_Window) guiLabelSetColor(S6_Label,255,255,255) guiLabelSetVerticalAlign(S6_Label,"top") guiLabelSetHorizontalAlign(S6_Label,"left",false) S7_Label = guiCreateLabel(0.0506,0.8687,0.8989,0.0475,"If you forget your password",true,Register_Window) guiLabelSetColor(S7_Label,255,255,255) guiLabelSetVerticalAlign(S7_Label,"top") guiLabelSetHorizontalAlign(S7_Label,"left",false) S8_Label = guiCreateLabel(0.0393,0.9162,0.882,0.0559,"You will be able to retrive it",true,Register_Window) guiLabelSetColor(S8_Label,255,255,255) guiLabelSetVerticalAlign(S8_Label,"top") guiLabelSetHorizontalAlign(S8_Label,"left",false) end )
  8. KraZ

    i need help :'(

    im sick and tired of lazy and hard admins on Roleplay servers, and you both clearly understand lua scripting, i only understand bits but if you want we could work on a roleplay server? i could do all the graphics. trailers and website and you guys could work on scripts? what you say?
  9. KraZ

    i need help :'(

    it doesnt seem to work is my meta correct? "KraZ" name="WelcomeGui" version="1.0.0" type="script"/>
  10. KraZ

    i need help :'(

    hey, im new to lua scripting and i was wondering if you guys could help me out, by creating the rest of my script and tell me how you did it and what does what so i can learn myself. This is my scripit, i want to be able to bind it to the F9 key so i can close and open it, and also i want it so it will pop up everytime you log in, if anyone could help me and link me to a few tutorials (Don't do complicated ones, because most of the scripting tutorials ive seen are hard to follow. function welcomegui GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Memo = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(78,70,642,498,"",false) GUIEditor_Image[1] = guiCreateStaticImage(0.2555,0.0462,0.4782,0.2369,"images/KraZWorld.png",true,GUIEditor_Window[1]) GUIEditor_Memo[1] = guiCreateMemo(0.0187,0.2671,0.9626,0.253,"KraZ'World is a MTA:SA Roleplay server based on the real world. We aim to create a laidback server fun for everyone with tons of jobs and activites throughout. We noticed that most RPG server admins were being a bit rough on their players and not playing their role as admin. When we choose staff we only pick the people who are serious but also give chance. This roleplay server is owned by [staff]KraZ and no one else you can find the staff members and other information below.\n\nWebsite & Forums:: [url=http://www.KraZKraft.co.uk]www.KraZKraft.co.uk[/url]",true,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(0.0187,0.5422,0.9626,0.4257,true,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Commands:",GUIEditor_TabPanel[1]) GUIEditor_Memo[2] = guiCreateMemo(0.0065,0.0372,0.9871,0.9415,"Commands are features you can access in-game to give to easier access to items/cars/objects.\nYou can also use commands for fun features which will be listed below. Commands can be used by going to your chatbox (T - Deafult) and typing the commands like so: (Say:/Commandname) then by pressing enter.\nCommands availible:\n/reconnect\n\n[More commands will be added soon]",true,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Rules:",GUIEditor_TabPanel[1]) GUIEditor_Memo[3] = guiCreateMemo(0.0065,0.0319,0.9871,0.9468,"Rules are Rules, All rules must be followed or you can face up to a month in ban or jail time. You can appeal permanent bans on the forums.\n\n1. - No Deathmatching (Deathmatching is allowed to a certain extent for example if you are a police officer going for somone wanted or if you'r a criminal and you want to go turf wars, We do allow some deathmatching but not always depends which staff member you get when the report is filed\nJail time for this offence: 800 minutes)\n\n2. - No Bug Abuse/Mods/Cheats (Using cheats or mods or abusing a bug are a serious offence on KraZ'World and you can get up to a month ban for using them, We do allow some mods like: e.g car mods, Skin mods, Jail time for this offence: MONTH BAN)\n\n3. - Listen To Staff Members (Staff members are located with the [staff] Tag, Listen to these people and do not ignore them, Jail time for this offence: 500 minutes)\n\n4. - Use /local chat before using Global, (Don't go abusing globalchat, use /local chat first\nJail time for this offence: 100 minutes)\n\n5. - Do not abuse the /support chat (/Support chat is only if you need support please no advertising or general conversation. Jail time for this offence: 200 minutes)\n\n6. - No Spamming Chat (Do not spam chat with the same sentance or advertising of anykind,\n Jail time for this offence: 300 minutes\n",true,GUIEditor_Tab[2]) GUIEditor_Tab[3] = guiCreateTab("Getting Started:",GUIEditor_TabPanel[1]) GUIEditor_Memo[4] = guiCreateMemo(0.0049,0.0213,0.9887,0.9574,"Okay, This tab is like a tutorial for new beginners, First off you'r going to want to get a job to earn some money, Do this by walking into a red marker, Pick a skin and accept the job, For this example i will post some jobs below,\n\nBus Driving - \nYou can get this job by going to unity station in Los Santos and picking the skin required for that job, Then you will need to get in a bus by entering a yellow marker and then drive to the bus stops, Simple.\n\nPolice/Medic - \nYou can get this job by going into the Red marker at a police station or hospital, pick the skin required get a car/ambulance then drive off and look for wanted players/low health players.\n\nPilot - \nGo to any airport except for the Abandoned one in Las Venturas, Go into the Red Marker and pick the skin required for the job, get in a plane by entering a yellow marker, and do your job as a pilot.\n\nJobs can be located by pressing F11 and looking for the job marker on the minimap (Jobs are Yellow blips on the minimap and the Large map)\n\n",true,GUIEditor_Tab[3]) GUIEditor_Tab[4] = guiCreateTab("Support:",GUIEditor_TabPanel[1]) GUIEditor_Memo[5] = guiCreateMemo(0.0049,0.0213,0.9903,0.9574,"If you need support its fairly simple just follow the instructions below:\n\nIf you need support fast, type this command into the chatbox - /Support yourmessagehere\n\nIf you need support but on something a staff member can help on go to the website and forums and post in the Support category of the forum.\n\nIf you need help on any other category ask some players of KraZ'World,",true,GUIEditor_Tab[4]) GUIEditor_Tab[5] = guiCreateTab("Staff Members:",GUIEditor_TabPanel[1]) GUIEditor_Memo[6] = guiCreateMemo(0.0049,0.016,0.9903,0.266,"There are 3 types of staff members: The following ranks and staff members are \nModerators, SuperModerators, Admins Below in the next box:",true,GUIEditor_Tab[5]) GUIEditor_Memo[7] = guiCreateMemo(0.0049,0.2819,0.9903,0.6755,"KraZ - [Admin] Dylan - [Admin] Taran - [Admin]\n\n\n",true,GUIEditor_Tab[5]) GUIEditor_Tab[6] = guiCreateTab("Donation Information:",GUIEditor_TabPanel[1]) GUIEditor_Memo[8] = guiCreateMemo(0.0049,0.0266,0.9903,0.9521,"Donating helps the server pay for fees and more, therfore you will recive more privlages than most players, you can donate by visiting the website and forums and clicking the donate button there.\n\n[NOTE]: To get the privlages you want you must donate over 7.50 British Pounds Sterlin.\n\nDonating helps us alot, feel free to help us out by donating after you have donating 7.50, If you donate over a certain ammount we will decide if you should be ranked as [staff]\n\n",true,GUIEditor_Tab[6]) guiSetVisible(GUIEditor_Window[1],true) end Thanks, if i dont reply email me at: [email protected]
×
×
  • Create New...