Jump to content

X-SHADOW

Members
  • Posts

    721
  • Joined

  • Last visited

Everything posted by X-SHADOW

  1. what is the erros ? /debugscript3 ..
  2. your script has a lot of erros and markers the same and the gui the same
  3. and i event try this but has erros see addEventHandler("onClientGUIClick",guiRoot, function () money = getPlayerMoney (localPlayer) if (source == GUIEditor_Button[29]) then guiSetVisible (GUIEditor_Window[1],false) showCursor (false) elseif (source == GUIEditor_Button[30]) then guiSetVisible (GUIEditor_Window[2],false) showCursor (false) elseif (source == GUIEditor_Button[1]) then if (money >= 100) then outputChatBox ("You bought a Pistol $100",225,225,0) takePlayerMoney(100) triggerServerEvent ("give45",getLocalPlayer(),give45) else guiSetVisible(GUIEditor_Window[2],true) guiSetVisible(GUIEditor_Window[1],false) end elseif (source == GUIEditor_Button[2]) then if (money >= 200) then outputChatBox ("You bought a Silenced $200",225,225,0) takePlayerMoney(200) triggerServerEvent ("givesilenced",getLocalPlayer(),givesilenced) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[3]) then if (money >= 600) then outputChatBox ("You bought a Desert Eagle $600",225,225,0) takePlayerMoney(600) triggerServerEvent ("givedeagle",getLocalPlayer(),givedeagle) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[4]) then if (money >= 500) then outputChatBox ("You bought a Shotgun $500",225,225,0) takePlayerMoney(500) triggerServerEvent ("givesh",getLocalPlayer(),givesh) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[5]) then if (money >= 700) then outputChatBox ("You bought a Sawn Off $700",225,225,0) takePlayerMoney(700) triggerServerEvent ("giveso",getLocalPlayer(),giveso) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[6]) then if (money >= 1000) then outputChatBox ("You bought a SPAZ-12 $1000",225,225,0) takePlayerMoney(1000) triggerServerEvent ("giveSP",getLocalPlayer(),giveSP) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[7]) then if (money >= 400) then outputChatBox ("You bought a Tec-9 $400",225,225,0) takePlayerMoney(400) triggerServerEvent ("givetec",getLocalPlayer(),givetec) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[8]) then if (money >= 600) then outputChatBox ("You bought a Uzi $600",225,225,0) takePlayerMoney(600) triggerServerEvent ("giveuzi",getLocalPlayer(),giveuzi) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[9]) then if (money >= 800) then outputChatBox ("You bought a MP5 $800",225,225,0) takePlayerMoney(800) triggerServerEvent ("givemp5",getLocalPlayer(),givemp5) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[11]) then if (money >= 1000) then outputChatBox ("You bought an AK-47 $1000",225,225,0) takePlayerMoney(1000) triggerServerEvent ("giveak",getLocalPlayer(),giveak) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[10]) then if (money >= 2000) then outputChatBox ("You bought a M4 $2000",225,225,0) takePlayerMoney(2000) triggerServerEvent ("givem4",getLocalPlayer(),givem4) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[13]) then if (money >= 3000) then outputChatBox ("You bought a Sniper $3000",225,225,0) takePlayerMoney(3000) triggerServerEvent ("gives",getLocalPlayer(),gives) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[12]) then if (money >= 1000) then outputChatBox ("You bought a Country Sniper $1000",225,225,0) takePlayerMoney(1000) triggerServerEvent ("givecs",getLocalPlayer(),givecs) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[25]) and getPlayerMoney( source) == 1000 and getElementHealth(source) < 100 then outputChatBox ("You bought a MedKit $1000",225,225,0) takePlayerMoney(1000) triggerServerEvent ("givehealth",getLocalPlayer(),givehealth) else outputChatBox('You Health is alredy 100% You Cant Buy This',source,255,0,0) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[26]) and getPlayerMoney( source) 1000 and getPedArmor(source) < 100 then outputChatBox ("You bought a Bullet Proof Vest $1500",225,225,0) takePlayerMoney(1500) triggerServerEvent ("givearmor",getLocalPlayer(),givearmor) else outputChatBox('Your Armor is Alredy 100% You Cant Buy Armor',source,255,255,0) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == button) then guiSetVisible(GUIEditor_Window[2],false) guiSetVisible(GUIEditor_Window[1],false) end end,true)
  4. same thing i just well look to the posts in the fourm to fined a problem like me i dont want make you tired Jaysds1
  5. try it now 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) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Image = {} function CreateGUIWindow() 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) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Grid = {} function CreateFarm() 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
  6. Jaysds1 i think i fucked up my slef only its still Buy even if my health and armor == 100 i even try what you post dont work.
  7. haha Jaysds1 X-Shadow Comes and fucked up every body alredy fixed befour 20 sec Thank's i realy love you
  8. no i was talking about takePlayerMoney to Amarant and the resource its got errors and wont work
  9. Yub AMARANT Thats What i mean and dont worry about takePlayerMoney in this mta verison its fixed clientSide and server side work and it dont work go lot of errors .
  10. HaHa God i hate the pepole who steal
  11. local marker = createMarker( 2035.1999511719, -1406.5, 16.200000762939, "Cylinder", 2, 6, 183, 248, 153) local skins = {"274", "275", "276"} GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} function job () GUIEditor_Window[1] = guiCreateWindow(478,142,303,404,"Job Medic",false) GUIEditor_Button[1] = guiCreateButton(20,348,108,43,"Take Job",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(165,348,108,43,"Cancel",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(18,31,268,188,"To take Medic team job, press Take job.\n\nIf you don't want to, press Cancel.",false,GUIEditor_Window[1]) GUIEditor_Grid[1] = guiCreateGridList(26,229,255,115,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) skins = guiGridListAddColumn(GUIEditor_Grid[1],"Skins",0.85) for index, Skins in ipairs(Skins) do local row = guiGridListAddRow (GUIEditor_Grid[1]) guiGridListSetItemText ( GUIEditor_Grid[1], row, skins, tostring(IDSkins), false, false ) end end for i,marker in ipairs(markers) do addEventHandler("onClientMarkerHit", marker, function ( hitElement ) if (hitElement == localPlayer) then Job ( hitElement ) if (MainGui ~= nil) then guiSetVisible(MainGui, true) showCursor(true) guiSetInputEnabled(true) setElementFrozen(hitElement, true) end end end ) end addEventHandler("onClientGUIClick", root, function () if (source == GUIEditor_Button[1]) then local row,col = guiGridListGetSelectedItem(GUIEditor_Grid[1]) if (row and col and row ~= -1 and col ~= -1) then local vehicleName = guiGridListGetItemText(GUIEditor_Grid[1], row, 1) if vehicleName == "274" then triggerServerEvent("spawn274",localPlayer,vehicleName) elseif vehicleName == "275" then triggerServerEvent("spawn275",localPlayer,vehicleName) elseif vehicleName == "276" then triggerServerEvent("spawn276",localPlayer,vehicleName) end else outputChatBox("Error: Please, select a Skin of list.",255,0,0) end elseif (source == GUIEditor_Button[2]) then triggerEvent("closeWindow", root ) end end) addEventHandler("onClientGUIDoubleClick", root, function () if ( source == GUIEditor_Grid[1] ) then local row,col = guiGridListGetSelectedItem(GUIEditor_Grid[1]) if (row and col and row ~= -1 and col ~= -1) then local vehicleName = guiGridListGetItemText(GUIEditor_Grid[1], row, 1) if vehicleName == "274" then triggerServerEvent("spawn274",localPlayer,vehicleName) elseif vehicleName == "275" then triggerServerEvent("spawn275",localPlayer,vehicleName) elseif vehicleName == "276" then triggerServerEvent("spawn276",localPlayer,vehicleName) end end end end ) for i,marker in ipairs(markers) do addEventHandler("onClientMarkerLeave", marker, function () triggerEvent("closeWindow", root ) end ) end addEventHandler("onClientPlayerWasted", root, function () triggerEvent("closeWindow", root ) end ) addEvent("closeWindow", true) addEventHandler("closeWindow", root, function () guiSetVisible(MainGui, false) showCursor(false) guiSetInputEnabled(false) setElementFrozen(localPlayer, false) end )
  12. Hi all i have littel problem with Shop_Weapons is when player try to buy a medKit and his health is 100 % the outputChatBox('Your Health is 100%) else outputChatBox('You Have Bought Medkit') and same as armor addEventHandler("onClientGUIClick",getRootElement(), function (player) if (source == GUIEditor_Button[29]) then guiSetVisible (GUIEditor_Window[1],false) showCursor (false) elseif (source == GUIEditor_Button[30]) then guiSetVisible (GUIEditor_Window[2],false) showCursor (false) elseif (source == GUIEditor_Button[1]) then money = getPlayerMoney (source) if (money >= 100) then player = getLocalPlayer() outputChatBox ("You bought a Pistol $100",225,225,0) takePlayerMoney(100) triggerServerEvent ("give45",getLocalPlayer(),give45) else guiSetVisible(GUIEditor_Window[2],true) guiSetVisible(GUIEditor_Window[1],false) end elseif (source == GUIEditor_Button[2]) then money = getPlayerMoney (source) if (money >= 200) then player = getLocalPlayer() outputChatBox ("You bought a Silenced $200",225,225,0) takePlayerMoney(200) triggerServerEvent ("givesilenced",getLocalPlayer(),givesilenced) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[3]) then money = getPlayerMoney (source) if (money >= 600) then player = getLocalPlayer() outputChatBox ("You bought a Desert Eagle $600",225,225,0) takePlayerMoney(600) triggerServerEvent ("givedeagle",getLocalPlayer(),givedeagle) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[4]) then money = getPlayerMoney (source) if (money >= 500) then player = getLocalPlayer() outputChatBox ("You bought a Shotgun $500",225,225,0) takePlayerMoney(500) triggerServerEvent ("givesh",getLocalPlayer(),givesh) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[5]) then money = getPlayerMoney (source) if (money >= 700) then player = getLocalPlayer() outputChatBox ("You bought a Sawn Off $700",225,225,0) takePlayerMoney(700) triggerServerEvent ("giveso",getLocalPlayer(),giveso) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[6]) then money = getPlayerMoney (source) if (money >= 1000) then player = getLocalPlayer() outputChatBox ("You bought a SPAZ-12 $1000",225,225,0) takePlayerMoney(1000) triggerServerEvent ("giveSP",getLocalPlayer(),giveSP) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[7]) then money = getPlayerMoney (source) if (money >= 400) then player = getLocalPlayer() outputChatBox ("You bought a Tec-9 $400",225,225,0) takePlayerMoney(400) triggerServerEvent ("givetec",getLocalPlayer(),givetec) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[8]) then money = getPlayerMoney (source) if (money >= 600) then player = getLocalPlayer() outputChatBox ("You bought a Uzi $600",225,225,0) takePlayerMoney(600) triggerServerEvent ("giveuzi",getLocalPlayer(),giveuzi) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[9]) then money = getPlayerMoney (source) if (money >= 800) then player = getLocalPlayer() outputChatBox ("You bought a MP5 $800",225,225,0) takePlayerMoney(800) triggerServerEvent ("givemp5",getLocalPlayer(),givemp5) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[11]) then money = getPlayerMoney (source) if (money >= 1000) then player = getLocalPlayer() outputChatBox ("You bought an AK-47 $1000",225,225,0) takePlayerMoney(1000) triggerServerEvent ("giveak",getLocalPlayer(),giveak) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[10]) then money = getPlayerMoney (source) if (money >= 2000) then player = getLocalPlayer() outputChatBox ("You bought a M4 $2000",225,225,0) takePlayerMoney(2000) triggerServerEvent ("givem4",getLocalPlayer(),givem4) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[13]) then money = getPlayerMoney (source) if (money >= 3000) then player = getLocalPlayer() outputChatBox ("You bought a Sniper $3000",225,225,0) takePlayerMoney(3000) triggerServerEvent ("gives",getLocalPlayer(),gives) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[12]) then money = getPlayerMoney (source) if (money >= 1000) then player = getLocalPlayer() outputChatBox ("You bought a Country Sniper $1000",225,225,0) takePlayerMoney(1000) triggerServerEvent ("givecs",getLocalPlayer(),givecs) else guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) end elseif (source == GUIEditor_Button[25]) then if getPlayerMoney( localPlayer ) >= 1000 outputChatBox ("You bought a MedKit $1000",225,225,0) takePlayerMoney(1000) triggerServerEvent ("givehealth",getLocalPlayer(),givehealth) elseif getElementHealth( localPlayer ) ~= 100 then outputChatBox('Your Health is 100% You Cant Buy MedKit',source,255,255,0) end elseif (source == GUIEditor_Button[26]) then if getPlayerMoney( localPlayer ) >= 1000 outputChatBox ("You bought a Bullet Proof Vest $1500",225,225,0) takePlayerMoney(1500) triggerServerEvent ("givearmor",getLocalPlayer(),givearmor) elseif getPedArmor ( localPlayer ) ~= 100 then outputChatBox('Your Armor is Alredy 100% You Cant Buy Armor',source,255,255,0) end elseif (source == GUIEditor_Button[29]) then guiSetVisible(GUIEditor_Window[2],false) guiSetVisible(GUIEditor_Window[1],false) end end)
  13. HaHa +1 Alpha its stupid ideas ! can he can change his serial ? realy? so if he got Banned he can remove it haha i think you got a lof of Bans and you want remove it Mta Team Please dont listen to this stupid idea .
  14. Just Look At the Tips in wiki there is Required Arguments and Optional Arguments [url=https://wiki.multitheftauto.com/wiki/SetCameraMatrix]https://wiki.multitheftauto.com/wiki/SetCameraMatrix[/url]
  15. 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) 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) end addEventHandler("onClientResourceStart", root , CreateFarm)
  16. what dosnt work ? the Markers ? the Buttons ? the Gui ? The triggers ?
  17. كلكم فهيمين مافي افهم من مجرم الا توب سنايبر خخخ + انا تعرفني زين مسوي جتات وجيتني بالله ابيه كيف صممته الخ .. وزاو السيرفر حقي مايحتاج اسئلهم من الافضل خخخ بعدين ليه اطرح الكود بعد ماتسبني ؟ # توب سنايبر destoryElement -- لاخفاء زر او نافذة او اي شي guiSetVisble -- لاظهار نافذه او صورة + لاخفائها لازم يستخدم guiCreateStaticImage
  18. 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], DestroyWindow2, false) end addEventHandler("onClientResourceStart", getRootElement(), CreateFarm) function DestroyWindow2() guiSetVisible(GUIEditor_Window[2],false) guiSetInputEnabled(false) showCursor(false) end
  19. لو ابي اصلحها اصلحها بثواني بس المشكله انت شغال سرقة اعمال الناس + السب حقك تم ابلاغ الادمن .
  20. can you show the full code ?
  21. no he want when he select the weapon the image of the weapon show
  22. SoldSnake14 Comes and Fucked up every body
  23. The Script is Crap you Should Learn lua we wont help you every time ^^ https://wiki.multitheftauto.com/wiki/Main_Page
  24. Thank's For God Helping me Work-Tested ClientSide GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(0.3037,0.75,0.4185,0.1817,"GUI Spawns",true) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(9,59,97,33,"Hombre",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(121,59,97,33,"Mujer",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(230,59,93,33,"Clan ODST",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(14,26,240,26,"Elige tu Spawn",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Button[4] = guiCreateButton(370,-3363,0,600,"",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(332,59,87,33,"[LPK] Clan",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(198,30,218,15,"BioHaZard Hell Zombies GUI",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Window[2] = guiCreateWindow(0.4121,0.575,0.1943,0.18,"Info Spawn",true) guiWindowSetMovable(GUIEditor_Window[2],false) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Memo[1] = guiCreateMemo(9,22,181,77,"",false,GUIEditor_Window[2]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) showCursor(false) addEvent("onVisibleSpawnGUI",true) addEventHandler("onVisibleSpawnGUI",root,function() guiSetVisible(GUIEditor_Window[1], true) guiSetVisible(GUIEditor_Window[2], true) showCursor(true) addEventHandler("onClientGUIClick", guiRoot,buttons,true) addEventHandler("onClientMouseEnter",root,mEnter) addEventHandler("onClientMouseLeave",root,mExit) end) function buttons() if (source == GUIEditor_Button[1]) then guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) showCursor(false) triggerServerEvent ("spawnPlayer_hombre",localPlayer,"Hombre") elseif (source == GUIEditor_Button[2]) then guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) showCursor(false) triggerServerEvent ("spawnPlayer_mujer",localPlayer,"Mujer") elseif (source == GUIEditor_Button[3]) then guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) showCursor(false) triggerServerEvent ("spawnPlayer_odst",localPlayer,"ODST") elseif( source == GUIEditor_Button[5]) then guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) showCursor(false) triggerServerEvent ("spawnPlayer_LPK",localPlayer,"LPK") end end addEventHandler("onClientPlayerWasted",root,function() guiSetVisible(GUIEditor_Window[1],true) guiSetVisible(GUIEditor_Window[2],true) showCursor(true) end) function mostrarspawn() guiSetVisible (GUIEditor_Window[1],true) guiSetVisible (GUIEditor_Window[2],true) showCursor (true) addEventHandler("onClientPedWeaponFire",root, cancelEvent) end addEvent("spawng", true) addEventHandler("spawng",root, mostrarspawn) function mEnter() if (source == GUIEditor_Button[1]) then guiSetText(GUIEditor_Memo[1], "Aprieta este boton si eres Hombre y no tienes ningun clan en especifico") elseif (source == GUIEditor_Button[2]) then guiSetText(GUIEditor_Memo[1], "Aprieta este boton si eres Mujer y no tienes ningun clan en especifico") elseif (source == GUIEditor_Button[3]) then guiSetText(GUIEditor_Memo[1], "Solo si eres de ODST clan Aprieta este boton sino es posible ser kickeado") elseif (source == GUIEditor_Button[5]) then guiSetText(GUIEditor_Memo[1], "LPK Latins Pro Killers Clan Privado Solo Para Pro Killers") end end function mExit() if (source == GUIEditor_Button[1]) then guiSetText(GUIEditor_Memo[1], "") elseif (source == GUIEditor_Button[2]) then guiSetText(GUIEditor_Memo[1], "") elseif (source == GUIEditor_Button[3]) then guiSetText(GUIEditor_Memo[1], "") elseif (source == GUIEditor_Button[5]) then guiSetText(GUIEditor_Memo[1], "") end end addEvent("setTheText", true) addEventHandler("setTheText",root,function() guiSetText(GUIEditor_Memo[1], "No Eres del Clan") guiSetVisible(GUIEditor_Window[1],true) guiSetVisible(GUIEditor_Window[2],true) showCursor(true) end) Server-Side addEventHandler("onPlayerLogin",root,function() triggerClientEvent(source, "onVisibleSpawnGUI",root) end) addEvent ("spawnPlayer_hombre",true) addEventHandler ("spawnPlayer_hombre",root,function(character) spawnPlayer ( client, 221.478515625, 1878.2919921875, 17.640625) setPedSkin ( client, 59 ) setPlayerTeam( client, ctm ) giveWeapon( client, 31, 400 ) outputChatBox ("Te Generaste como "..character.."!",client,225,225,0) end) addEvent ("spawnPlayer_mujer",true) addEventHandler ("spawnPlayer_mujer",root,function(character) spawnPlayer ( client, 226.5859375, 1878.255859375, 17.640625) setPedSkin ( client, 246 ) setPlayerTeam( client, ctm2 ) giveWeapon( client, 31, 400 ) outputChatBox ("Te Generaste como "..character.."!",client,255, 0, 255) end) addEvent ("spawnPlayer_odst",true) addEventHandler ("spawnPlayer_odst",root,function(character) spawnPlayer ( client, -1434.138671875, 495.91015625, 11.1953125) setPedSkin ( client, 60 ) setPlayerTeam( client, ctm3 ) giveWeapon( client, 31, 400 ) giveWeapon( client, 22, 600 ) outputChatBox ("Te Generaste como "..character.."!",client,225,225,0) end) addEvent ("spawnPlayer_LPK",true) addEventHandler ("spawnPlayer_LPK",root,function(character) local accName = getAccountName ( getPlayerAccount ( client ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "LPK" ) ) then setPlayerTeam( client, ctm4 ) giveWeapon( client, 31, 400 ) giveWeapon( client, 22, 600 ) spawnPlayer ( client, -625.97680664063, 1926.2482910156, 1.2687499523163) outputChatBox ("Te Generaste como "..character.."!",client,225,225,0) setPedSkin ( client, 115 ) else triggerClientEvent(client, "setTheText", root) end end) function morir () local SkinID = getElementModel( client ) triggerClientEvent(source,"spawng", root) spawnPlayer ( client, 1607.4176025391, 1816.3229980469, 10.8203125 ) setElementModel( client,SkinID) end addEventHandler ("onPlayerWasted", root, morir) function giveWeaponsOnSpawn ( theSpawnpont, theTeam ) giveWeapon ( source, 31, 2000 ) giveWeapon ( source, 24, 200 ) giveWeapon ( source, 25, 300 ) giveWeapon ( source, 34, 300 ) end addEventHandler ( "onPlayerSpawn", getRootElement(), giveWeaponsOnSpawn ) -----Equipos---- ctm = createTeam("Hombres", 255, 0, 0) ctm2 = createTeam("Mujeres", 255, 0, 255) ctm3 = createTeam("ODST Clan", 0, 0, 255) ctm4 = createTeam("[LPK] Clan", 128,128,128) Make the group in acl and enter the gorup and write in it user.xxx xxx = your user account in admin-panel and give the resources admin rights .
×
×
  • Create New...