Jump to content

NextGenRP

Members
  • Posts

    48
  • Joined

  • Last visited

Everything posted by NextGenRP

  1. Damn ok it should be fine thanks guys
  2. How can i rotate a GUI? I want to make a progress bar vertical not horizontal.
  3. NextGenRP

    GUI

    Use guiSetVisible at the start of the resource and it will be depending on the x,y arguments of the window i think.
  4. Because you can change the TXD's with script that's probably what they thought you meant, I don't know but i wouldn't suggest changing them client side but it's up to you.
  5. Never mind ill just put up with it. Another thing i want to know is, I changed the element data client side from a GUI then when the player quits i save it server side and then when a player logs in it should set the data server side, It works fine for everything else but this for some reason the thing i change from the GUI doesn't save
  6. Im not sure but a start would be change the race resource from a game mode to a script, Then you will need to change everything that starts the race mode for the player when they connect or login however race works to something custom, I can't really tell you what to modify i have not seen into the race mode.
  7. I still have the problem this is what i added: for _,gui in ipairs(getElementsByType("gui-window")) do if guiGetVisible(gui) == true then else For some reason the GUI still shows when i open another GUI then try to open it.
  8. I suppose you could do something like if you have Real life in LS and race is SF or LV and like jeremaniak said use a marker or command or GUI whatever you want to warp the player in a vehicle but you will need to modify the race resource or create your own, It is highly possible but you will need to script it yourself.
  9. Thanks man the type argument gui-window wasn't in the wiki for getElementsByType
  10. With the guiGetVisible i need to use a gui argument don't i? I want to check if any window is open and yeah but then i would still have the error shown in the image.
  11. Just make a GUI for each server and you can make a command /change or something and it will show the GUI and then you can add as many servers as you want to the GUI using buttons and redirectPlayer That is just how i would do it.
  12. It's a GUI that shows when you click on a player, I can't seem to reproduce the error now but it happened when a player tried to click on the Login GUI and the player GUI came up because the player is behind the gui, Here is another example with a different GUI: This is why checking if any GUI window is open it would be better i think.
  13. Hey guys, I've made a panel when a player clicks on another player it will open the panel. The problem is that before the player logged in the login GUI comes up and when a player clicks on the login edit the player panel comes up but it doesn't have any information because the player has not yet logged in, How can i stop the player panel GUI from showing if the user is not logged in? Or is there any way to check if a gui window is already open? -- this would be better for what i need. (not just this)
  14. 192.168.0.3 Thats your local ip im sure.
  15. XAMPP is a program to make hosting apache and MySQL and other programs easy and in one place, he uses the MySQL and the SQL admin tool provided with XAMPP for his MTA roleplay server, If he can connect to the server fine and there is no SQL errors then its probably a problem with his ports or MTA server i doubt it will be the XAMPP.
  16. Yeah you usualy need to pay or learn. What kind of gamemode do you want scripting?
  17. You should be able to just go into meta.xml and find any of the timers you want to change and do it there but you can try this although i have not tested; Find: activePoll.timeout and replace with 7 it should look something like 7 * 1000 Like i said, I haven't tested and there is probably more timers to change than that so back it up first.
  18. http://postimage.org/image/r1sc1t9pj When i press the close button, It clicks the vehicle and instantly opens it again.
  19. Hey i have created a panel and when you click on a vehicle it opens, It all seems to work fine but when you press the close button if there is a vehicle underneath the gui it clicks on that too and reopens it, Is there anything i can do? I've tried guiSetInputEnabled.
  20. NextGenRP

    onMarkerHit

    addEvent("showMainWindow", true) -- just in case you haven't already added the event function showMeTheWindow( ) guiSetVisible(mainWindow, true) showCursor(true) end addEventHandler("showMainWindow", getLocalPlayer(), showMeTheWindow) Try that it might be the problem
  21. Thanks guys i managed to get it working, I have another problem though im trying to create a /handbrake and im using setVehicleFrozen but if i bind it and jump off something then press the key it will freeze my vehicle in mid air, Is there anything else i can use other than setVehicleFrozen?
  22. Changed it to this; function enter(player,seat) if seat == 0 then local eniginestate = getVehicleEngineState(source) if eniginestate == false then setVehicleEngineState(source,false) outputChatBox("Press J to start the "..getVehicleName(source).."'s engine.",player,255,255,0) end end end addEventHandler("onVehicleEnter", getRootElement(), enter) Now it doesn't output and the engine still starts
  23. Yeah i have made it like this; for k, i in ipairs(getElementsByType("vehicle")) do setVehicleEngineState(i,false) setVehicleLocked(i,true) end But when the player gets in the vehicle it just turns back on. function enter(player,seat) if seat == 0 then local eniginestate = getVehicleEngineState(source) if eniginestate == false then outputChatBox("Press J to start the "..getVehicleName(source).."'s engine.",player,255,255,0) end end end addEventHandler("onVehicleEnter", getRootElement(), enter) It will output to the chat but then the engine just comes on.
×
×
  • Create New...