Jump to content

Tete omar

Members
  • Posts

    3,267
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by Tete omar

  1. Sorry if i'm too dumb but can you give me an example please.
  2. You mean just like that if ( source == GUIEditor_Button[3] ) then local Marker = createMarker ( -8.8994140625, 51.5, 2.0999999046326, "cylinder", 1.10000002, 255, 29, 91, 1 ) addEventHandler('onClientMarkerHit', Marker,function(hitPlayer) if (hitPlayer == localPlayer) then attachElementToBone(Marker,localPlayer,CJ_SANDBAG,-8.8994140625,51.5,2.0999999046326,1.9986572265625,177.99884033203,30.069580078125) alright ?
  3. Can't understand how this this thing works .
  4. How do i make any thing like the bag of money , or any object like the weapons the player can carry the weapons i want the player carry a pickup like the CJ_SANDBAG
  5. it still don't work no error but nothing happened ..
  6. So you must use addCommandHandler or bindKey so at least you make sense for your gui
  7. Client side 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) end addEventHandler("onClientResourceStart", root, createFarm) function exiting() if ( source == GUIEditor_Button[4] ) then guiSetVisible(GUIEditor_Window[2],false) guiSetInputEnabled(false) showCursor(false) elseif ( source == GUIEditor_Button[8] ) then guiSetVisible(GUIEditor_Window[2],false) guiSetInputEnabled(false) showCursor(false) addEventHandler('onClientGUIClick', root, exiting) function yabbooy() 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 end end function vehicleas() Marker = createMarker ( -29.7998046875, 5.8994140625, 2.0999999046326, "cylinder", 3, 234, 70, 0, 19 ) addEventHandler('onClientMarkerHit', Marker,function(hitPlayer) if (hitPlayer == localPlayer) then triggerServerEvent ( "onVehicleRide", localPlayer ) vehicle = createVehicle ( 532, -29.7998046875 , 5.8994140625, 5.8994140625 ) end end) end server side addEvent("onVehicleRide", true) addEventHandler("onVehicleRide", root, function () warpPedIntoVehicle ( localPlayer, vehicle ) end ) There's no error on debugscript 3 but i think it makes no sense i mean when i hit the marker nothing happens
  8. طيب معليش عالسريع ابي كود ارسال الفلوس من لاعب لآخر والحد الأدنى لللارسال 10 دولار وشكراً
  9. Debugscript it and type what it says here
  10. Why it says "=" expected near end --Server side addEvent("onVehicleRide", true) function vehicleas() warpPedIntoVehicle end -- = here ? addEventHandler("onVehicleRide", localPlayer, vehicleas) --Client side function vehicleas() local Marker = createMarker ( -29.7998046875, 5.8994140625, 2.0999999046326, "cylinder", 3, 234, 70, 0, 19 ) addEventHandler('onClientMarkerHit', Marker,function(hitPlayer) if (hitPlayer == localPlayer) then local vehicle = createVehicle ( 532, -29.7998046875 , 5.8994140625, 5.8994140625 ) triggerServerEvent ( "onVehicleRide", localPlayer ) end end) end
  11. بسم الله الرحمن الرحيم outputChatBox("#00ff00Send Money by #ff0000tete #FFFF00press f9 to open the panel",255,255,255,true) outputChatBox("#00ff00 اضغت اف9 لآرسال الفلوس",255,255,255,true) GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(298,259,646,337,"SendMoney..By tete",false) guiSetAlpha(GUIEditor_Window[1],1) guiWindowSetSizable(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[1], false) GUIEditor_Image[1] = guiCreateStaticImage(50,-132,5,5,"images/500.PNG",false,GUIEditor_Window[1]) GUIEditor_Grid[1] = guiCreateGridList(9,20,209,308,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) GUIEditor_Label[1] = guiCreateLabel(357,204,114,16,"الحد الأدنى 10 ريال",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(462,287,165,44,"tete",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],0,255,0) guiSetFont(GUIEditor_Label[2],"sa-header") GUIEditor_Label[3] = guiCreateLabel(532,276,113,31,"لعيون سيرفر",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],255,0,0) GUIEditor_Edit[1] = guiCreateEdit(302,164,235,37,"",false,GUIEditor_Window[1]) GUIEditor_Label[4] = guiCreateLabel(330,125,136,21,"",false,GUIEditor_Window[1]) guiLabelSetHorizontalAlign(GUIEditor_Label[4],"right",false) GUIEditor_Label[5] = guiCreateLabel(468,126,97,25,"المرسل اليه :",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(246,256,121,47,"images/500.PNG",false,GUIEditor_Window[1]) GUIEditor_Image[3] = guiCreateStaticImage(443,73,153,39,"images/500.PNG",false,GUIEditor_Window[1]) function clientsideResourceStart () local playerList = GUIEditor_Grid[1] local column = guiGridListAddColumn(GUIEditor_Grid[1],"الاعبين",0.85) if ( column ) then for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ),false, false ) end end end addEventHandler ( "onClientResourceStart", getRootElement(), clientsideResourceStart ) function selectedplayer ( clickedElement ) if ( clickedElement ) then local elementType = getElementType ( clickedElement ) local bunci = GUIEditor_Label[4] local playerList = GUIEditor_Grid[1] local fow = guiGridListGetSelectedItem ( playerList ) guiGridListGetItemText ( playerList, fow, 35) guiSetText ( bunci, elementType ) end end addEventHandler ( "onClientGUIClick", getRootElement(), selectedplayer ) bindKey('f7','down',function() guiSetVisible(GUIEditor_Window[1],not(guiGetVisible(GUIEditor_Window[1]))) showCursor(guiGetVisible(GUIEditor_Window[1])) end) هنا ابي اسم الاعب يطلع بال GUIEditor_Label[5] = guiCreateLabel(468,126,97,25,"المرسل اليه :",false,GUIEditor_Window[1]) يعني مثلاً انا اخترت شخص في الجريد ليست يظهر اسمه في المرسل اليه مثال المرسل اليه : ahmed بالله الي ما يعرف يجربه عنده والسلام عليكم ورحمة الله وبركاته
  12. Wow ! i did it thanks !!!!!!! i dunno what should do with out your help : D
  13. Sorry like this ? function clientsideResourceStart () local playerList = GUIEditor_Grid[1] local column = guiGridListAddColumn(GUIEditor_Grid[1],"الاعبين",0.85) if ( column ) then for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ),false, false ) local playerName = guiGridListGetItemText ( playerList, guiGridListGetSelectedItem ( playerList ), 1 ) GUIEditor_Label[4] ( playerName ) end end end
  14. GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(298,259,646,337,"SendMoney..By tete",false) guiSetAlpha(GUIEditor_Window[1],1) guiWindowSetSizable(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[1], false) GUIEditor_Image[1] = guiCreateStaticImage(50,-132,5,5,"images/500.PNG",false,GUIEditor_Window[1]) GUIEditor_Grid[1] = guiCreateGridList(9,20,209,308,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) GUIEditor_Label[1] = guiCreateLabel(357,204,114,16,"Max 10$",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(462,287,165,44,"Tete",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],0,255,0) guiSetFont(GUIEditor_Label[2],"sa-header") GUIEditor_Label[3] = guiCreateLabel(532,276,113,31,"Send money by",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],255,0,0) GUIEditor_Edit[1] = guiCreateEdit(302,164,235,37,"",false,GUIEditor_Window[1]) GUIEditor_Label[4] = guiCreateLabel(330,125,136,21,"",false,GUIEditor_Window[1]) guiLabelSetHorizontalAlign(GUIEditor_Label[4],"right",false) GUIEditor_Label[5] = guiCreateLabel(468,126,97,25,"Send money for:",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(246,256,121,47,"images/500.PNG",false,GUIEditor_Window[1]) GUIEditor_Image[3] = guiCreateStaticImage(443,73,153,39,"images/500.PNG",false,GUIEditor_Window[1]) function clientsideResourceStart () local playerList = GUIEditor_Grid[1] local column = guiGridListAddColumn(GUIEditor_Grid[1],"Players",0.85) if ( column ) then for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList ) local morsal = GUIEditor_Label[4] guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), morsal,false, false ) end end end addEventHandler ( "onClientResourceStart", getRootElement(), clientsideResourceStart ) bindKey('f7','down',function() guiSetVisible(GUIEditor_Window[1],not(guiGetVisible(GUIEditor_Window[1]))) showCursor(guiGetVisible(GUIEditor_Window[1])) end) guiLabelSetHorizontalAlign(GUIEditor_Label[4],"right",false) GUIEditor_Label[5] = guiCreateLabel(468,126,97,25,"Send money for:",false,GUIEditor_Window[1]) Here i want the player name just like when i choose the player from the gridlist it show up in GUIEditor_Label[4] like Send money for: Dennies
  15. lol what had a face to do with animation? if you wants to put your own face into MTA you can use this function https://wiki.multitheftauto.com/wiki/DxDrawImage i wish see your face walking around in MTA No .. if you want to put your own face on mta like the rock mod or other characters you must also use 3ds max and this program isn't for animating only it also for changing the object's shape and if you a good on sculpt you could create your face.
  16. And by the way, you're untrustworthy and ill arrogant , and i accept anyone script for me for getting money except you !
  17. Now i understand how it works thanks kenix
  18. GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Edit = {} GUIEditor_Memo = {} GUIEditor_Window[1] = guiCreateWindow(167,128,949,523,"Chats",false) guiSetVisible(GUIEditor_Window[1], false) GUIEditor_TabPanel[1] = guiCreateTabPanel(32,39,893,460,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Help",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[1]) GUIEditor_Memo[1] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[1]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) GUIEditor_Tab[2] = guiCreateTab("Main",GUIEditor_TabPanel[1]) GUIEditor_Edit[2] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[2]) GUIEditor_Memo[2] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[2]) guiMemoSetReadOnly(GUIEditor_Memo[2],true) GUIEditor_Tab[3] = guiCreateTab("Arabic",GUIEditor_TabPanel[1]) GUIEditor_Edit[3] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[3]) GUIEditor_Memo[3] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[3]) guiMemoSetReadOnly(GUIEditor_Memo[3],true) GUIEditor_Tab[4] = guiCreateTab("Russian",GUIEditor_TabPanel[1]) GUIEditor_Edit[4] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[4]) GUIEditor_Memo[4] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[4]) guiMemoSetReadOnly(GUIEditor_Memo[4],true) GUIEditor_Tab[5] = guiCreateTab("Spanish",GUIEditor_TabPanel[1]) GUIEditor_Edit[5] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[5]) GUIEditor_Memo[5] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[5]) guiMemoSetReadOnly(GUIEditor_Memo[5],true) GUIEditor_Tab[6] = guiCreateTab("Turkish",GUIEditor_TabPanel[1]) GUIEditor_Edit[6] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[6]) GUIEditor_Memo[6] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[6]) guiMemoSetReadOnly(GUIEditor_Memo[6],true) GUIEditor_Tab[7] = guiCreateTab("French",GUIEditor_TabPanel[1]) GUIEditor_Edit[7] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[7]) GUIEditor_Memo[7] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[7]) guiMemoSetReadOnly(GUIEditor_Memo[7],true) GUIEditor_Tab[8] = guiCreateTab("German",GUIEditor_TabPanel[1]) GUIEditor_Edit[8] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[8]) GUIEditor_Memo[8] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[8]) guiMemoSetReadOnly(GUIEditor_Memo[8],true) GUIEditor_Tab[9] = guiCreateTab("Indian",GUIEditor_TabPanel[1]) GUIEditor_Edit[9] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[9]) GUIEditor_Memo[9] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[9]) guiMemoSetReadOnly(GUIEditor_Memo[9],true) GUIEditor_Tab[10] = guiCreateTab("Ireland",GUIEditor_TabPanel[1]) GUIEditor_Edit[10] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[10]) GUIEditor_Memo[10] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[10]) guiMemoSetReadOnly(GUIEditor_Memo[10],true) GUIEditor_Tab[11] = guiCreateTab("Italian",GUIEditor_TabPanel[1]) GUIEditor_Edit[11] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[11]) GUIEditor_Memo[11] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[11]) guiMemoSetReadOnly(GUIEditor_Memo[11],true) GUIEditor_Tab[12] = guiCreateTab("Portuguese",GUIEditor_TabPanel[1]) GUIEditor_Edit[12] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[12]) GUIEditor_Memo[12] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[12]) guiMemoSetReadOnly(GUIEditor_Memo[12],true) bindKey('f2','down',function() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end) i want here when i type anything in Edit then it show up in Memo but when i type in help tap it show up in main chat like that support 'playername', also in help tab and when the player type /help ' and type here what the player want ' then it also show up in help tab and main chat as support 'playername' and the other languages only private just like when the Spanish player wanted to talk to his country peoples then he should talk here GUIEditor_Tab[5] = guiCreateTab("Spanish",GUIEditor_TabPanel[1]) hope you understood me thanks for all.
×
×
  • Create New...