Jump to content

Tete omar

Members
  • Posts

    3,267
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by Tete omar

  1. Listen, i want when i click on the button and take my money other marker show up not when i didn't pay when i click on the button and take my money = an other marker show up not randomly when i click on the button and outPutChatBox Sorry you don't have enough money = the marker still hidden and i want the marker here x: 1003.4245605469 y: -2309.5610351563 z: 13.09375 in this position and by the way i saw this action in many servers no one wants to tell me what the doing thank you : |
  2. I give up here's my gamemode local Marker = createMarker ( 1007.4000244141, -2302.6999511719, 12.10000038147, "cylinder", 1.29999995, 255, 0, 0, 255 ) addEventHandler('onClientMarkerHit', Marker,function(hitPlayer) if (hitPlayer == localPlayer) then guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end) function CreateGUIWindow() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(502,268,480,290,"",false) GUIEditor_Image[1] = guiCreateStaticImage(240,20,229,261,"images/space.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(10,251,91,30,"Buy Ticket",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(155,251,69,30,"Exit",false,GUIEditor_Window[1]) GUIEditor_Memo[1] = guiCreateMemo(15,20,219,221,"=====|MoonTrip|=====\nWelcome to the\" MoonTrip\", the moon trip is wonderful trip full of mystery stuff and nice gravitation,You'll find the absolute fun but try to find fun enough \nbecause time is only 10 minutes you will find above signs should find it in different areas, each one under 5k have a nice time\n====|Ticket|====\nMoon 100,000$=====|MoonTrip|====",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) guiSetVisible(GUIEditor_Window[1], false) addEventHandler("onClientGUIClick", GUIEditor_Button[1], take, false) end addEventHandler("onClientResourceStart", root, CreateGUIWindow) addEventHandler('onClientGUIClick', root, function () if ( source == GUIEditor_Button[2] ) then guiSetVisible(GUIEditor_Window[1],false) guiSetInputEnabled(false) showCursor(false) elseif ( source == GUIEditor_Button[4] ) then guiSetVisible(GUIEditor_Window[2],false) guiSetInputEnabled(false) showCursor(false) end end) function take() if( getPlayerMoney( localPlayer ) >= 100000 ) then takePlayerMoney (100000) outputChatBox("#00ff00You bought a ticket you can go to the rocket now have a nice trip.",255,255,255,true) guiSetVisible(GUIEditor_Window[1],false) guiSetInputEnabled(false) showCursor(false) else outputChatBox("#FFFF00Sorry, you don't have enough money",255,255,255,true) end end local Marker = createMarker ( -28.599609375, 163.8994140625, 1.3999999761581, "cylinder", 1.60000002, 255, 0, 0, 255 ) addEventHandler('onClientMarkerHit', Marker,function(hitPlayer) if (hitPlayer == localPlayer) then guiSetVisible(GUIEditor_Window[2], true) showCursor(true) end end) function CreateFarm() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Grid = {} GUIEditor_Window[2] = guiCreateWindow(18,307,367,431,"",false) guiSetAlpha(GUIEditor_Window[2],1) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Button[3] = guiCreateButton(22,377,88,42,"Work",false,GUIEditor_Window[2]) GUIEditor_Button[4] = guiCreateButton(246,383,86,39,"Exit",false,GUIEditor_Window[2]) GUIEditor_Memo[2] = guiCreateMemo(16,32,339,216,"=====|Farm Job|=====\nWelcome to the farm job\nthe farm job is about farm stuff \nso when you start go get the parcel of Seed\nand it's located on your map then go\nto the farm and drop the seed onto every arrow when you done wait 5 sec to get the plant\ngrown and go get the combine harvester and collect your crops when you done collecting \nhit the checkpoints and you get \n1200$\n\n=====|Farm Job|=====",false,GUIEditor_Window[2]) guiMemoSetReadOnly(GUIEditor_Memo[2],true) guiSetVisible(GUIEditor_Window[2], false) addEventHandler("onClientGUIClick", GUIEditor_Button[3], skins, false) local skins = -- Create a table with our skin names and their ID's. { { "Farmer", 158 }, { "Farmer Redneck", 159 }, { "Farmer Girl", 157 } } GUIEditor_Grid[1] = guiCreateGridList(12,260,346,79,false,GUIEditor_Window[2]) guiGridListAddColumn(GUIEditor_Grid[1],"Select your skin",0.2) for index, skin in ipairs ( skins ) do local row = guiGridListAddRow ( GUIEditor_Grid[1] ) guiGridListSetItemText ( GUIEditor_Grid[1], row, 1, skin [ 1 ], false, false ) guiGridListSetItemData ( GUIEditor_Grid[1], row, 1, skin [ 2 ] ) end end
  3. I won't show my full gamemode sorry i want a code for hide a object or marker
  4. Hey guys, i want when the player press on the button the marker show up function take() if( getPlayerMoney( localPlayer ) >= 100000 ) then takePlayerMoney (100000) outputChatBox("#00ff00You bought a ticket you can go to the rocket now have a nice trip.",255,255,255,true) guiSetVisible(GUIEditor_Window[1],false) guiSetInputEnabled(false) showCursor(false) else outputChatBox("#FFFF00Sorry, you don't have enough money",255,255,255,true) end end when the player press on the button and take his money other marker show up, thanks for who replied. : )
  5. Hey guys my editor not like that https://wiki.multitheftauto.com/wiki/Resource:Editor#GUI and my editor don't have a spawn point like that how do i make my editor support the spawn point which make easy to make a spawn point
  6. انا الشي الي مستغربله اني مسوي اوبجيكت وسويت كريت اوبجيت قبل ما تقلي اروح المنطقة الي محددهة بكريت اوبجيكت ما الاقيه ولما اضغت على الزر الي يطلع هالاوبجيكت فوق الاقي الاوبجيكت ظهر بس ما سوى شي
  7. السلام عليكم ورحمة الله وبركاته كيفكم شباب انا سويت اسئلة كثيرة في scripting ماحد رد علي برد نافع وكل الي يردون بس يحطون كودات ما لها وجود اصلاً عشان بس عدد التعليقات عندهم يكثر ابغي اخلي اوبجيكت يتحرك بس لمن الاعب يضغت على Buy Ticket وتفتحله البوابة وبعد ما يروح بعيد تنقفل البوابة ويتسواله الامر stopObject و killTimer وهذا هو السكربت حقي local Marker = createMarker ( 1007.4000244141, -2302.6999511719, 12.10000038147, "cylinder", 1.29999995, 255, 0, 0, 255 ) addEventHandler('onClientMarkerHit', Marker,function(hitPlayer) if (hitPlayer == localPlayer) then guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end) function CreateGUIWindow() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(502,268,480,290,"",false) GUIEditor_Image[1] = guiCreateStaticImage(240,20,229,261,"images/space.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(10,251,91,30,"Buy Ticket",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(155,251,69,30,"Exit",false,GUIEditor_Window[1]) GUIEditor_Memo[1] = guiCreateMemo(15,20,219,221,"=====|MoonTrip|=====\nWelcome to the\" MoonTrip\", the moon trip is wonderful trip full of mystery stuff and nice gravitation,You'll find the absolute fun but try to find fun enough \nbecause time is only 10 minutes you will find above signs should find it in different areas, each one under 5k have a nice time\n====|Ticket|====\nMoon 100,000$=====|MoonTrip|====",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) guiSetVisible(GUIEditor_Window[1], false) addEventHandler("onClientGUIClick", GUIEditor_Button[1], take, false) addEventHandler("onClientGUIClick", GUIEditor_Button[1], movethis, true) end addEventHandler("onClientResourceStart", root, CreateGUIWindow) addEventHandler('onClientGUIClick', root, function () if ( source == GUIEditor_Button[2] ) then guiSetVisible(GUIEditor_Window[1],false) guiSetInputEnabled(false) showCursor(false) elseif ( source == GUIEditor_Button[4] ) then guiSetVisible(GUIEditor_Window[2],false) guiSetInputEnabled(false) showCursor(false) end end) function take() if( getPlayerMoney( localPlayer ) >= 100000 ) then takePlayerMoney (100000) outputChatBox("#00ff00You bought a ticket you can go to the rocket now have a nice trip.",255,255,255,true) guiSetVisible(GUIEditor_Window[1],false) guiSetInputEnabled(false) showCursor(false) else outputChatBox("#FFFF00Sorry, you don't have enough money",255,255,255,true) end end function movethis() if( point == 1) then moveObject(objectairportgate1, 5000, 1002.5999755859, -2310.1999511719, 20, 0, 0, 0) setTimer(omgMoveobjectairportgate1, 5000+7000, 1, 2) elseif( point == 2) then moveObject(objectairportgate1, 5000, 1002.599609375, -2310.19921875, 14.89999961853, 0, 0, 0) setTimer(omgMoveobjectairportgate1, 5000+7000, 1, 1) end end end local Marker = createMarker ( -28.599609375, 163.8994140625, 1.3999999761581, "cylinder", 1.60000002, 255, 0, 0, 255 ) addEventHandler('onClientMarkerHit', Marker,function(hitPlayer) if (hitPlayer == localPlayer) then guiSetVisible(GUIEditor_Window[2], true) showCursor(true) end end) function CreateFarm() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Grid = {} GUIEditor_Window[2] = guiCreateWindow(18,307,367,431,"",false) guiSetAlpha(GUIEditor_Window[2],1) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Button[3] = guiCreateButton(22,377,88,42,"Work",false,GUIEditor_Window[2]) GUIEditor_Button[4] = guiCreateButton(246,383,86,39,"Exit",false,GUIEditor_Window[2]) GUIEditor_Memo[2] = guiCreateMemo(16,32,339,216,"=====|Farm Job|=====\nWelcome to the farm job\nthe farm job is about farm stuff \nso when you start go get the parcel of Seed\nand it's located on your map then go\nto the farm and drop the seed onto every arrow when you done wait 5 sec to get the plant\ngrown and go get the combine harvester and collect your crops when you done collecting \nhit the checkpoints and you get \n1200$\n\n=====|Farm Job|=====",false,GUIEditor_Window[2]) guiMemoSetReadOnly(GUIEditor_Memo[2],true) guiSetVisible(GUIEditor_Window[2], false) addEventHandler("onClientGUIClick", GUIEditor_Button[3], skins, false) local skins = -- Create a table with our skin names and their ID's. { { "Farmer", 158 }, { "Farmer Redneck", 159 }, { "Farmer Girl", 157 } } GUIEditor_Grid[1] = guiCreateGridList(12,260,346,79,false,GUIEditor_Window[2]) guiGridListAddColumn(GUIEditor_Grid[1],"Select your skin",0.2) for index, skin in ipairs ( skins ) do local row = guiGridListAddRow ( GUIEditor_Grid[1] ) guiGridListSetItemText ( GUIEditor_Grid[1], row, 1, skin [ 1 ], false, false ) guiGridListSetItemData ( GUIEditor_Grid[1], row, 1, skin [ 2 ] ) end end ركز بس على " function movethis() " هذا كل شي .. والسلام عليكم ورحمة الله وبركاته
  8. x-shadow كل الكودات الي تصلحها لي خربانة ههههه كل ما اطرح سؤال الاقيك نطيت فيه كمان الكود خربان ..
  9. Tete omar

    Log

    Sorry as far as i know you can't save your server log on port servers, you can just see what they doing in MTA SERVER.exe only on host servers can see a bit actions in your server
  10. Tete omar

    Log

    Did you created your server by host or by port ?
  11. I'm already use notepad ++ and unfortunately the gate still don't move
  12. WARNING: Marker.lua:65: Bad argument @ 'guiSetVisible' [Expected gui-element at argument 1, got nil] It's 65 now
  13. local Marker = createMarker ( 1007.4000244141, -2302.6999511719, 12.10000038147, "cylinder", 1.29999995, 255, 0, 0, 255 ) addEventHandler('onClientMarkerHit', Marker,function(hitPlayer) if (hitPlayer == localPlayer) then guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end) function CreateGUIWindow() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(502,268,480,290,"",false) GUIEditor_Image[1] = guiCreateStaticImage(240,20,229,261,"images/space.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(10,251,91,30,"Buy Ticket",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(155,251,69,30,"Exit",false,GUIEditor_Window[1]) GUIEditor_Memo[1] = guiCreateMemo(15,20,219,221,"=====|MoonTrip|=====\nWelcome to the\" MoonTrip\", the moon trip is wonderful trip full of mystery stuff and nice gravitation,You'll find the absolute fun but try to find fun enough \nbecause time is only 10 minutes you will find above signs should find it in different areas, each one under 5k have a nice time\n====|Ticket|====\nMoon 50,000$=====|MoonTrip|====",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) guiSetVisible(GUIEditor_Window[1], false) addEventHandler("onClientGUIClick", GUIEditor_Button[1], take, false) addEventHandler("onClientGUIClick", GUIEditor_Button[1], move, false) end addEventHandler("onClientResourceStart", root, CreateGUIWindow) addEventHandler('onClientGUIClick', root, function () if ( source == GUIEditor_Button[2] ) then guiSetVisible(GUIEditor_Window[1],false) guiSetInputEnabled(false) showCursor(false) elseif ( source == GUIEditor_Button[4] ) then guiSetVisible(GUIEditor_Window[2],false) guiSetInputEnabled(false) showCursor(false) end end) function take() if( getPlayerMoney( localPlayer ) >= 100000 ) then takePlayerMoney (100000) outputChatBox("#00ff00You bought a ticket you can go to the rocket now have a nice trip.",255,255,255,true) guiSetVisible(GUIEditor_Window[1],false) guiSetInputEnabled(false) showCursor(false) else outputChatBox("#FFFF00Sorry, you don't have enough money",255,255,255,true) end end function move() if (point == 1) then moveObject(objectairportgate1, 5000, 1002.5999755859, -2310.1999511719, 20, 0, 0, 0) setTimer(omgMoveobjectairportgate1, 5000+7000, 1, 2) elseif( point == 2) then moveObject(objectairportgate1, 5000, 1002.599609375, -2310.19921875, 14.89999961853, 0, 0, 0) setTimer(omgMoveobjectairportgate1, 5000+7000, 1, 1) end end local Marker = createMarker ( -28.599609375, 163.8994140625, 1.3999999761581, "cylinder", 1.60000002, 255, 0, 0, 255 ) addEventHandler('onClientMarkerHit', Marker,function(hitPlayer) if (hitPlayer == localPlayer) then guiSetVisible(GUIEditor_Window[2], true) showCursor(true) end end) function CreateFarm() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Grid = {} GUIEditor_Window[2] = guiCreateWindow(18,307,367,431,"",false) guiSetAlpha(GUIEditor_Window[2],1) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Button[3] = guiCreateButton(22,377,88,42,"Work",false,GUIEditor_Window[2]) GUIEditor_Button[4] = guiCreateButton(246,383,86,39,"Exit",false,GUIEditor_Window[2]) GUIEditor_Memo[2] = guiCreateMemo(16,32,339,216,"=====|Farm Job|=====\nWelcome to the farm job\nthe farm job is about farm stuff \nso when you start go get the parcel of Seed\nand it's located on your map then go\nto the farm and drop the seed onto every arrow when you done wait 5 sec to get the plant\ngrown and go get the combine harvester and collect your crops when you done collecting \nhit the checkpoints and you get \n1200$\n\n=====|Farm Job|=====",false,GUIEditor_Window[2]) guiMemoSetReadOnly(GUIEditor_Memo[2],true) guiSetVisible(GUIEditor_Window[2], false) addEventHandler("onClientGUIClick", GUIEditor_Button[3], skins, false) local skins = -- Create a table with our skin names and their ID's. { { "Farmer", 158 }, { "Farmer Redneck", 159 }, { "Farmer Girl", 157 } } GUIEditor_Grid[1] = guiCreateGridList(12,260,346,79,false,GUIEditor_Window[2]) guiGridListAddColumn(GUIEditor_Grid[1],"Select your skin",0.2) for index, skin in ipairs ( skins ) do local row = guiGridListAddRow ( GUIEditor_Grid[1] ) guiGridListSetItemText ( GUIEditor_Grid[1], row, 1, skin [ 1 ], false, false ) guiGridListSetItemData ( GUIEditor_Grid[1], row, 1, skin [ 2 ] ) end end When i hit this marker local Marker = createMarker ( -28.599609375, 163.8994140625, 1.3999999761581, "cylinder", 1.60000002, 255, 0, 0, 255 ) it says WARNING: Marker.lua:66: Bad argument @ 'guiSetVisible' [Expected gui-element at argument 1, got nil] I tried to fix it about 2 or 4 hours. sorry guys i'm really need of help this problem always exists when i create a new marker and make it as hit as window
  14. Oh so sorry it says unexpected symbol near { :87: here's full gamemode local Marker = createMarker ( 1007.4000244141, -2302.6999511719, 12.10000038147, "cylinder", 1.29999995, 255, 0, 0, 255 ) addEventHandler('onClientMarkerHit', Marker,function(hitPlayer) if (hitPlayer == localPlayer) then guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end) function CreateGUIWindow() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(502,268,480,290,"",false) GUIEditor_Image[1] = guiCreateStaticImage(240,20,229,261,"images/space.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(10,251,91,30,"Buy Ticket",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(155,251,69,30,"Exit",false,GUIEditor_Window[1]) GUIEditor_Memo[1] = guiCreateMemo(15,20,219,221,"=====|MoonTrip|=====\nWelcome to the\" MoonTrip\", the moon trip is wonderful trip full of mystery stuff and nice gravitation,You'll find the absolute fun but try to find fun enough \nbecause time is only 10 minutes you will find above signs should find it in different areas, each one under 5k have a nice time\n====|Ticket|====\nMoon 50,000$=====|MoonTrip|====",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) guiSetVisible(GUIEditor_Window[1], false) addEventHandler("onClientGUIClick", GUIEditor_Button[1], take, false) addEventHandler("onClientGUIClick", GUIEditor_Button[1], move, false) end addEventHandler("onClientResourceStart", root, CreateGUIWindow) addEventHandler('onClientGUIClick', root, function () if ( source == GUIEditor_Button[2] ) then guiSetVisible(GUIEditor_Window[1],false) guiSetInputEnabled(false) showCursor(false) elseif ( source == GUIEditor_Button[4] ) then guiSetVisible(GUIEditor_Window[2],false) guiSetInputEnabled(false) showCursor(false) end end) function take() if( getPlayerMoney( localPlayer ) >= 100000 ) then takePlayerMoney (100000) outputChatBox("#00ff00You bought a ticket you can go to the rocket now have a nice trip.",255,255,255,true) guiSetVisible(GUIEditor_Window[1],false) guiSetInputEnabled(false) showCursor(false) else outputChatBox("#FFFF00Sorry, you don't have enough money",255,255,255,true) end end function move() if (point == 1) then moveObject(objectairportgate1, 5000, 1002.5999755859, -2310.1999511719, 20, 0, 0, 0) setTimer(omgMoveobjectairportgate1, 5000+7000, 1, 2) elseif( point == 2) then moveObject(objectairportgate1, 5000, 1002.599609375, -2310.19921875, 14.89999961853, 0, 0, 0) setTimer(omgMoveobjectairportgate1, 5000+7000, 1, 1) end end local Marker = createMarker ( -28.599609375, 163.8994140625, 1.3999999761581, "cylinder", 1.60000002, 255, 0, 0, 255 ) addEventHandler('onClientMarkerHit', Marker,function(hitPlayer) if (hitPlayer == localPlayer) then guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end) function CreateFarm() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Grid = {} GUIEditor_Window[2] = guiCreateWindow(18,307,367,431,"",false) guiSetAlpha(GUIEditor_Window[2],1) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Button[3] = guiCreateButton(22,377,88,42,"Work",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(246,383,86,39,"Exit",false,GUIEditor_Window[1]) GUIEditor_Memo[2] = guiCreateMemo(16,32,339,216,"=====|Farm Job|=====\nWelcome to the farm job\nthe farm job is about farm stuff \nso when you start go get the parcel of Seed\nand it's located on your map then go\nto the farm and drop the seed onto every arrow when you done wait 5 sec to get the plant\ngrown and go get the combine harvester and collect your crops when you done collecting \nhit the checkpoints and you get \n1200$\n\n=====|Farm Job|=====",false,GUIEditor_Window[2]) guiMemoSetReadOnly(GUIEditor_Memo[2],true) guiGridListAddRow(GUIEditor_Grid[1]) local skins { { "Farmer", 158 }, { "Farmer Redneck", 159 }, { "Farmer Girl", 157 } } GUIEditor_Grid[1] = guiCreateGridList(12,260,346,79,false,GUIEditor_Window[1]) guiGridListAddColumn(GUIEditor_Grid[1],"Select your skin",0.2) for index, skin in ipairs ( skins ) do local row = guiGridListAddRow ( GUIEditor_Grid[1] ) guiGridListSetItemText ( GUIEditor_Grid[1], row, 1, skin [ 1 ], false, false ) guiGridListSetItemData ( GUIEditor_Grid[1], row, 1, skin [ 2 ] ) end end
  15. Thanks i always respect you )
  16. sorry if i being nutty in questions but somethings is absolutely different and i didn't face it before in my case I see no failed at "debugscript" but when i do the function which make this gate move then it does not make any change function move() if (point == 1) then moveObject(objectairportgate1, 5000, 1002.5999755859, -2310.1999511719, 20, 0, 0, 0) mytimer = setTimer(omgMoveobjectairportgate1, 5000+7000, 1, 2) elseif( point == 2) then moveObject(objectairportgate1, 5000, 1002.599609375, -2310.19921875, 14.89999961853, 0, 0, 0) setTimer(omgMoveobjectairportgate1, 5000+7000, 1, 1) function stop() killTimer (mytimer) stopObject (objectairportgate1) end end end
  17. Waiting for an answer.....
  18. It still doesn't work
  19. local Marker = createMarker ( 1007.4000244141, -2302.6999511719, 12.10000038147, "cylinder", 1.29999995, 255, 0, 0, 255 ) addEventHandler('onClientMarkerHit', Marker,function(hitPlayer) if (hitPlayer == localPlayer) then guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end) function CreateGUIWindow() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(502,268,480,290,"",false) GUIEditor_Image[1] = guiCreateStaticImage(240,20,229,261,"images/space.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(10,251,91,30,"Buy Ticket",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(155,251,69,30,"Exit",false,GUIEditor_Window[1]) GUIEditor_Memo[1] = guiCreateMemo(15,20,219,221,"=====|MoonTrip|=====\nWelcome to the\" MoonTrip\", the moon trip is wonderful trip full of mystery stuff and nice gravitation,You'll find the absolute fun but try to find fun enough \nbecause time is only 10 minutes you will find above signs should find it in different areas, each one under 5k have a nice time\n====|Ticket|====\nMoon 50,000$=====|MoonTrip|====",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) guiSetVisible(GUIEditor_Window[1], false) addEventHandler("onClientGUIClick", GUIEditor_Button[2], DestroyWindow, false) addEventHandler("onClientGUIClick", GUIEditor_Button[1], take, false) addEventHandler("onClientGUIClick", GUIEditor_Button[1], move, false) end addEventHandler("onClientResourceStart", getRootElement(), CreateGUIWindow) function DestroyWindow() guiSetVisible(GUIEditor_Window[1],false) guiSetInputEnabled(false) showCursor(false) end function take() if(getPlayerMoney(localPlayer)>=100000)then takePlayerMoney (100000) outputChatBox("#00ff00You bought a ticket you can go to the rocket now have a nice trip.",255,255,255,true) guiSetVisible(GUIEditor_Window[1],false) guiSetInputEnabled(false) showCursor(false) else outputChatBox("#FFFF00Sorry, you don't have enough money",255,255,255,true) end end function move() if point == 1 then moveObject(objectairportgate1, 5000, 1002.5999755859, -2310.1999511719, 20, 0, 0, 0) setTimer(omgMoveobjectairportgate1, 5000+7000, 1, 2) elseif point == 2 then moveObject(objectairportgate1, 5000, 1002.599609375, -2310.19921875, 14.89999961853, 0, 0, 0) setTimer(omgMoveobjectairportgate1, 5000+7000, 1, 1) end end local Marker = createMarker ( -28.599609375, 163.8994140625, 1.3999999761581, "cylinder", 1.60000002, 255, 0, 0, 255 ) addEventHandler('onClientMarkerHit', Marker,function(hitPlayer) if (hitPlayer == localPlayer) then guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end) function CreateFarm() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Grid = {} GUIEditor_Window[2] = guiCreateWindow(18,307,367,431,"",false) guiSetAlpha(GUIEditor_Window[2],1) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Button[3] = guiCreateButton(22,377,88,42,"Work",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(246,383,86,39,"Exit",false,GUIEditor_Window[1]) GUIEditor_Memo[2] = guiCreateMemo(16,32,339,216,"=====|Farm Job|=====\nWelcome to the farm job\nthe farm job is about farm stuff \nso when you start go get the parcel of Seed\nand it's located on your map then go\nto the farm and drop the seed onto every arrow when you done wait 5 sec to get the plant\ngrown and go get the combine harvester and collect your crops when you done collecting \nhit the checkpoints and you get \n1200$\n\n=====|Farm Job|=====",false,GUIEditor_Window[2]) guiMemoSetReadOnly(GUIEditor_Memo[2],true) GUIEditor_Grid[1] = guiCreateGridList(12,260,346,79,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Select your skin",0.2) for i = 1, 3 do guiGridListAddRow(GUIEditor_Grid[1]) end guiGridListSetItemText(GUIEditor_Grid[1],0,1,"Farmer") guiGridListSetItemText(GUIEditor_Grid[1],1,1,"Farmer Redneck") guiGridListSetItemText(GUIEditor_Grid[1],2,1,"Farmer Girl") guiSetVisible(GUIEditor_Window[2], false) addEventHandler("onClientGUIClick", GUIEditor_Button[4], DestroyWindow, false) end addEventHandler("onClientResourceStart", getRootElement(), CreateFarm) function DestroyWindow() guiSetVisible(GUIEditor_Window[2],false) guiSetInputEnabled(false) showCursor(false) end This is full gamemode but when i run it, it says guiGridListSetItemText(GUIEditor_Grid[1],0,1,"Farmer") guiGridListSetItemText(GUIEditor_Grid[1],1,1,"Farmer Redneck") guiGridListSetItemText(GUIEditor_Grid[1],2,1,"Farmer Girl") got none all of them and i see a half Start & exit button only on the monitor also doesn't work.. please i need help
  20. It doesn't work Genius ...
  21. This code is a little part of a big gamemode
  22. GUIEditor_Grid[1] = guiCreateGridList(12,260,346,79,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Select your skin",0.2) for i = 1, 3 do guiGridListAddRow(GUIEditor_Grid[1]) end guiGridListSetItemText(GUIEditor_Grid[1],0,1,"Farmer") guiGridListSetItemText(GUIEditor_Grid[1],1,1,"Farmer Redneck") guiGridListSetItemText(GUIEditor_Grid[1],2,1,"Farmer Girl") It's only a text .. i want the player select a skin of these skins Farmer id = 158 Farmer redneck id = 159 Farmer girl id = 157
×
×
  • Create New...