Jump to content

Smart.

Members
  • Posts

    340
  • Joined

  • Last visited

Everything posted by Smart.

  1. Smart.

    robber error

    It's parts from one of my scripts. The cancelEvent was meant to make the job ped immortal but he only took parts from it and never created the ped.
  2. Smart.

    Set up vG script

    You need to set up a MySQL server. and then changing the connection details.
  3. Let's hijack this topic! You say Dwayne has weird reasons for banning poeple? Well, SGC claims that I've reported them for having illegal forum but I haven't sure I know their forum software is illegal but I never reported it. Yet they banned my IP from their website And ontopic: If I were chang, I would focus on the more important stuff such as a police system, the main events like bank robbery and it's nothing special, like aero said.
  4. I think he means, if he flips his car, upside & down it will usually get caught on fire, I guess he wants to remove that.
  5. He wanted the GUI to be visible on marker hit, not when you bind the key..
  6. When I restart the resedit resource the list updates for me
  7. Server Sided: https://wiki.multitheftauto.com/wiki/OnMarkerHit Client Sided: https://wiki.multitheftauto.com/wiki/OnClientMarkerHit an example: myGuiWindow = guiCreateWindow () myMarker = createMarker () addEventHandler ( "onClientMarkerHit", root, function ( hitElement ) if ( source == myMarker and hitElement == localPlayer ) then guiSetVisible ( myGuiWindow, true ) end end )
  8. The grey color is kinda boring but overall, it looks cool gj
  9. As TAPL said; thevehicle isn't defined anywhere. @Genius: root is a predefined MTA variable of getRootElement() see: https://wiki.multitheftauto.com/wiki/Pre ... ables_list
  10. viewtopic.php?f=91&t=31891 and look for: "GUI Creation"
  11. I just tested it and it's neat lookin' Incase you wonder how it looks like ingame I opened some GUI's I had made and printed, so yeah great work! links: http://i47.tinypic.com/16hvxit.png http://i50.tinypic.com/14j80f7.png
  12. Funny how you want to take credit for a script you didn't do
  13. Smart.

    Help

    If the whole script is client sided it should work as it works on mine.
  14. Joker, you won't be able to run a server or whatever you are trying to do if you don't want to learn lua. You can't expect us to help you when you are doing nothing yourself.
  15. Smart.

    Help

    try; WindowTest = guiCreateWindow(350,250,450,320,"Exemplo",false) guiWindowSetSizable(WindowTest,false) guiSetVisible(WindowTest,false) function ShowTest ( ) guiSetVisible ( WindowTest, not guiGetVisible ( WindowTest ) ) showCursor ( guiGetVisible ( WindowTest ) ) end bindKey ( "F5","down", ShowTest )
  16. Click in the "Default child type" as well.
  17. I would just suggest using relative, if you use guieditor (which I assume you do) then right click -> settings -> and mark "Relative" then click save. Or, you could make it even more simple by using: https://wiki.multitheftauto.com/wiki/CenterWindow
  18. Looks quite nice, gonna try it out asap
  19. You could either make the gui in relative mode, or: guiGetScreenSize
  20. Smart.

    runcode

    executed? what do you mean? Obviously the player who executed the command using runcode.
  21. Wrote it in a hurry, anyhow try: firstMarker = createMarker ( 2055.4, -1775.08, 12.6, "cylinder" ,2, 249, 19, 75, 190 ) secondMarker = createMarker ( 2144.3,-1663.7,14.6,"cylinder",2, 249, 19, 75, 190 ) thirdMarker = createMarker(2146.3,-1470.4,25.1,"cylinder",2, 249, 19, 75, 190) teamCriminal = createTeam( "Criminal", 249, 19, 75) local message = "You have robbed the house and got $857" function robber ( hitPlayer ) setElementModel ( hitPlayer, 115 ) setPlayerTeam ( hitPlayer, teamCriminal ) setPlayerNametagColor ( hitPlayer, teamCriminal ) outputChatBox ( "You are now Robber.", hitPlayer ) end addEventHandler ( "onMarkerHit", firstMarker, robber ) function onMarker1 ( thePlayer ) destroyElement ( secondMarker ) givePlayerMoney ( thePlayer, 856 ) outputChatBox ( message, hitPlayer ) end addEventHandler ( "onMarkerHit", secondMarker, onMarker1 ) function onMarker2 ( thePlayer ) destroyElement ( thirdMarker ) givePlayerMoney ( thePlayer, 856 ) outputChatBox ( message, hitPlayer ) end addEventHandler ( "onMarkerHit", thirdMarker, onMarker2 )
  22. So, there is a line called robber job? Cool.
  23. What like are you talking about?
  24. I don't think a scripter will script your server, and some kind of donating system (?) So you can maybe make couple of dollars which you'll then send him?
×
×
  • Create New...