Jump to content

waqaarali

Members
  • Posts

    181
  • Joined

  • Last visited

Everything posted by waqaarali

  1. Well I want to make a Hosting Company with someone who can pay with PayPal as I setted up many hosting companies in the past and owned many so I have experience in them. Or, I need a job at a Hosting Company as I possess these skills, - Photoshop Skills - Past Hosting Company Experience - Problem/Error Solving Skills - HTML Skills - Experience with Linux [[ Mainly Ubuntu ]]
  2. waqaarali

    HELP GUI!!

    I want to know how to make shaders in GUI's, a bit like this,
  3. So i need to make the codes seperate?
  4. Sorry man, i am still a learning to script
  5. This is the only client marker hit code i have in client side local lspdMarker = createMarker(1553.77661, -1675.02612, 15.19531,"cylinder",1) function onMarkerEnter() mainGUI = guiCreateWindow(262, 215, 314, 206, "Job System v1.0 By FlowZ", false) guiWindowSetSizable(mainGUI, false) mainMemo = guiCreateMemo(10, 41, 290, 110, "Welcome to Los Santos Police Department v1.0 Job System. This job was created by FlowZ and has been made from scratch it has a lot of features. If you would like to take this job go ahead and hit 'Accept' or if you don't want this job hit 'Decline'.", false, mainGUI) guiMemoSetReadOnly(mainMemo, true) mainAccept = guiCreateButton(16, 165, 93, 27, "Accept", false, mainGUI) mainDecline = guiCreateButton(207, 165, 93, 27, "Decline", false, mainGUI) if source == lspdMarker then guiSetVisible(mainGUI,true) showCursor(true) end end addEventHandler("onClientMarkerHit",getRootElement(),onMarkerEnter)
  6. Well what i am trying to do is solve this problem from yestarday, when i enter a different marker it's meant to do something else seperately but for some reason it is showing another markers GUI but for this marker a 'Gate' opens, help please ;(, local lspdTeam = createTeam ( "San Andreas Police",13,0,255) function setTeam() setPlayerTeam ( source, lspdTeam ) setElementModel ( source, 280 ) giveWeapon ( source, 31, 500 ) giveWeapon ( source, 3, 1 ) giveWeapon ( source, 29, 500 ) end addEvent("lspdTeam",true) addEventHandler("lspdTeam",getRootElement(),setTeam) local gate = createObject(976 , 1544.4000244141, -1630.6999511719 , 12.5, 0 ,0 ,92) local marker = createMarker(1540.98633, -1627.65710, 13.38281, "cylinder", 6, 255, 255, 255, 0) function moveGate(hitPlayer, matchingDimension) if getPlayerTeam(hitPlayer) == lspdTeam then moveObject(gate, 2000, 1544.4000244141 , -1638.6999511719 , 12.5) setTimer(moveBack, 2000, 1) end end addEventHandler("onMarkerHit", marker, moveGate) function moveBack() moveObject(gate, 2000, 1544.4000244141, -1630.6999511719 , 12.5) end All i want to do is make this gate open, the gate opens but the other script's GUI opens too.
  7. Well i have another script but it's seperate i don't want to post it, and when i enter this marker it appears the other markers GUI why ?
  8. Client Side function onMarkerHit() vehicleGUI = guiCreateWindow(314, 215, 160, 211, "", false) guiWindowSetSizable(vehicleGUI, false) vehLabelOne = guiCreateLabel(13, 36, 15, 15, "1.", false, vehicleGUI) vehButtonOne = guiCreateButton(38, 26, 107, 36, "LSPD Vehicle", false, vehicleGUI) vehLabelTwo = guiCreateLabel(13, 86, 15, 15, "2.", false, vehicleGUI) vehButtonTwo = guiCreateButton(38, 76, 107, 36, "LSPD Rancher", false, vehicleGUI) vehLabelThree = guiCreateLabel(13, 138, 15, 15, "3.", false, vehicleGUI) vehButtonThree = guiCreateButton(38, 128, 107, 36, "LSPD Motorbike", false, vehicleGUI) vehClose = guiCreateButton(86, 179, 64, 22, "Close", false, vehicleGUI) if source == vehMarker then guiSetVisible(vehicleGUI,true) showCursor ( true ) end end addEventHandler("onClientMarkerHit",root,onMarkerHit)
  9. Well i made 2 markers in seperate script with different functions but when i enter one marker it shows same GUI as the other one, why ?
  10. I want to basically make a login system which allows to register with Firstname_Lastname like roleplay without using a MySQLDatabase
  11. What i would've done would be similar, which is, function close() if source == GUIaizvert then guiSetVisible(raceInformation,false) showCursor(false) end end addEventHandler("onClientGUIClick",getRootElement(),close)
  12. tosfera you mind giving me an example of login-system with xml's ? with
  13. Well i want to learn to script more lol =D
  14. What do you mean built in account system ? A already made MySQL Account System
  15. Well i was wondering, is it possible to make a roleplay login without mysql so players can register with Firstname_Lastname with mysql and regularly ?
  16. If i would make a login panel what functions would i need?
  17. I can make vehicles but i can't enter them why ?
  18. CLIENT SIDE local vehicleMarker = createMarker(1032.47998, -1032.34766, 31.1,"cylinder",1,255,255,255) function vehicleGUI() vehicleGUI = guiCreateWindow(277, 204, 268, 223, "Vehicle Spawn", false) guiWindowSetSizable(vehicleGUI, false) vehicleOne = guiCreateButton(9, 31, 250, 50, "Faggio", false, vehicleGUI) vehicleBMX = guiCreateButton(9, 95, 250, 50, "BMX", false, vehicleGUI) vehicleMountain = guiCreateButton(9, 162, 250, 50, "Mountain Bike", false, vehicleGUI) if source == vehicleMarker then guiSetVisible(vehicleGUI, true) showCursor( true ) end end addEventHandler("onClientMarkerHit",getRootElement(),vehicleGUI) function vehicleOne( player ) if source == vehicleOne then local playerspawn = getLocalPlayer() local x, y, z = getElementPosition ( playerspawn ) createVehicle ( 462, x, y, z + 5 ) guiSetVisible(vehicleGUI,false) showCursor( false ) end end addEventHandler("onResourceStart",getRootElement(),vehicleOne) I can't spawn the vehilce when i press the button No errors come up either.
  19. So basically addEvent("name",true) and triggerClientEvent -- from server to client. triggerServerEvent -- from client to server. ??
  20. Well i know i posted a couple of threads now but yestarday i finally created a working script =D (( ' Never give up ' )). Well i really wanted to move off the basic stuff and learn how to connect client-side and server-side together so all GUI things are on client-side and when the button is clicked it is on server-side any help or functions pleasee !!! =D
  21. Well i want to start working on a small roleplay project including a MySQL i just want the character to register choose it's skin from a GUI and spawn in the streets of los santos, and the account is in the mysql database in phpmyadmin, i saw a vid tut last time on YouTube i think it was Project X Roleplay scripting or something can't remember. So how can i do this and were do i start?
×
×
  • Create New...