-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
-- try this server side not tested . marker = createMarker ( x,y,z -1, "cylinder", 2, 0, 0, 0, 100 ) addEventHandler("onMarkerHit", marker, function (player) if (getElementType(player) == "player" and getElementModel (player) == 1 ) then killPed(player) end end )
-
I actually do not know did not Attention out for this thing Thank you for your help!
-
This really is something strange!I get it from the guieditor outPut! -_-" Thanks For help
-
Hello! i have a problem here on this panel is not working ! i don,t know why [= ? GUIEditor = { label = {}, button = {}, } Main = {}, Vehicle = {} Thanks .
-
بس حبيت ان الاخ يفصل اكواد الشوب والزحمة الطويلة وماسك طريق ومدري وش root = getRootElement() localPlayer = getLocalPlayer() outputChatBox("#ffff00=login&send money | #330079Press #00ff00F2 To Open it =",0,255,0,true) shopWindow = guiCreateWindow(170,50,530,510,"#ffff00=login&send money ",false) guiSetVisible (shopWindow, false) guiWindowSetSizable(shopWindow,false) guiWindowSetMovable(shopWindow,true) tabPanel = guiCreateTabPanel(11,23,599,499,false,shopWindow) ------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------- info = guiCreateTab("info",tabPanel) welcomeLabel = guiCreateLabel(120,40,410,20,"HI",false,info) guiLabelSetColor(welcomeLabel,0,255,55) comeLabel = guiCreateLabel(120,60,450,20,"ولكم",false,info) guiLabelSetColor(comeLabel,255,150,0) playerName = guiCreateLabel(6,90,300,70,'اسمك:',false,info) guiLabelSetColor(playerName,0,255,0) guiSetText ( playerName, getPlayerName(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerName,"Your Name :"..getPlayerName(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerPing = guiCreateLabel(6,120,300,70,'Your ping:',false,info) guiLabelSetColor(playerPing,0,255,0) guiSetText ( playerPing, getPlayerPing(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerPing,"Your ping :"..getPlayerPing(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerMoney = guiCreateLabel(6,150,300,70,'Your Money:',false,info) guiLabelSetColor(playerMoney,0,255,0) guiSetText ( playerMoney, getPlayerMoney(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerMoney,"Your Money :"..getPlayerMoney(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerTeam = guiCreateLabel(6,180,300,70,'Your Team:',false,info) guiLabelSetColor(playerTeam,0,255,0) guiSetText ( playerTeam, getPlayerTeam(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerTeam,"Your Team :"..getPlayerTeam(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerArmor = guiCreateLabel(6,210,300,70,'Your Armor:',false,info) guiLabelSetColor(playerArmor,0,255,0) guiSetText ( playerArmor, getPedArmor(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerArmor,"Your Armor :"..getPedArmor(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerSkin = guiCreateLabel(6,240,300,70,'Your Skin:',false,info) guiLabelSetColor(playerSkin,0,255,0) guiSetText ( playerSkin, getPedSkin(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerSkin,"Your Skin :"..getPedSkin(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerWeapon = guiCreateLabel(6,270,300,70,'Your Weapon:',false,info) guiLabelSetColor(playerWeapon,0,255,0) guiSetText ( playerWeapon, getPedWeapon(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerWeapon,"Your Weapon :"..getPedWeapon(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) id = guiCreateLabel(6,300,300,70,'Your id:',false,info) guiLabelSetColor(id,0,255,0) guiSetText ( id, getElementRadius(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(id,"Your id :"..getElementRadius(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) is = guiCreateLabel (6,300,420,70,'حياكم الله في سيرفرنا', false, tab5 ) guiLabelSetColor(is,0,127,255) ib = guiCreateLabel (6,330,420,70,'ـــــــــــــــــــــــــــــــ', false, tab5 ) guiLabelSetColor(ib,0,127,255) ix = guiCreateLabel(6,360,420,70,'Your Money:',false,tab5) guiLabelSetColor(ix,0,255,0) guiSetText ( ix, getPlayerMoney(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(ix,"Your Money :"..getPlayerMoney(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) Label = guiCreateLabel(0,78,480,20,"_______________________________________________________________________",false,info) tap4 = guiCreateTab("تسجيل+دخول",tabPanel) --------------------------------------------------------------------------------------------------------- user = guiCreateEdit(92,37,181,36,"",false,tap4) pass = guiCreateEdit(97,94,171,33,"",false,tap4) lname = guiCreateLabel(10,46,85,33,"اسمك:",false,tap4) guiLabelSetColor(lname,255,0,0) lpass = guiCreateLabel(12,98,85,33,"الرمز",false,tap4) guiLabelSetColor(lpass,255,0,0) onlogin = guiCreateButton(46,151,113,34,"login",false,tap4) onregister = guiCreateButton(191,152,113,34,"register",false,tap4) info = guiCreateLabel(21,202,346,30,"SADIQ",false,tap4) guiLabelSetColor(info,0,255,0) tab5 = guiCreateTab("ارسال الاموال",tabPanel) setTimer( function() playerList = guiCreateGridList(6, 6, 144, 400, false, tab5) guiGridListSetSelectionMode(playerList, 2) local cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) if ( cl and guiGetVisible(shopWindow) == true ) then for _,name in ipairs(getElementsByType("player")) do local rw = guiGridListAddRow(playerList) guiGridListSetItemText(playerList, rw, cl, getPlayerName(name), false, false) end addEventHandler("onClientGUIClick", playerList, onClickPlayerName) end end ,4000,0) nameEdit = guiCreateEdit(160,150,200,30,"",false,tab5) amountEdit = guiCreateEdit(160,200,100,30,"",false,tab5) sendBTN = guiCreateButton(150,280,130,36, "ارسال", false,tab5) ii = guiCreateLabel(6,390,420,70,"مود ارسال الاموال ولوحة تسجيل الدخولf2 ",false,tap5) guiLabelSetColor(ii,255,0,0) function onClickPlayerName () local name = guiGridListGetItemText(playerList, guiGridListGetSelectedItem(playerList), 1) guiSetText(nameEdit, name) end bindKey ( "F2" , "down" , function() if ( guiGetVisible ( shopWindow ) == true ) then guiSetVisible ( shopWindow ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( shopWindow ) == false ) then guiSetVisible ( shopWindow ,true ) showCursor (false ) guiSetInputEnabled(true) playSound("1.wav") end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == onlogin ) then triggerServerEvent("onlogin",getLocalPlayer(), guiGetText(user), guiGetText(pass)) elseif ( source == onregister ) then triggerServerEvent("onregister",getLocalPlayer(), guiGetText(user), guiGetText(pass)) elseif ( source == sendBTN ) then playerNick =
-
احترف الاحداثيات والزوايا وانتضر الاخ "بسول" يجي ويفسر لك -_-" .
-
root = getRootElement() localPlayer = getLocalPlayer() outputChatBox("#ffff00=login&send money | #330079Press #00ff00F2 To Open it =",0,255,0,true) shopWindow = guiCreateWindow(170,50,530,510,"#ffff00=login&send money ",false) guiSetVisible (shopWindow, false) guiWindowSetSizable(shopWindow,false) guiWindowSetMovable(shopWindow,true) tabPanel = guiCreateTabPanel(11,23,599,499,false,shopWindow) ------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------- info = guiCreateTab("info",tabPanel) welcomeLabel = guiCreateLabel(120,40,410,20,"HI",false,info) guiLabelSetColor(welcomeLabel,0,255,55) comeLabel = guiCreateLabel(120,60,450,20,"ولكم",false,info) guiLabelSetColor(comeLabel,255,150,0) playerName = guiCreateLabel(6,90,300,70,'اسمك:',false,info) guiLabelSetColor(playerName,0,255,0) guiSetText ( playerName, getPlayerName(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerName,"Your Name :"..getPlayerName(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerPing = guiCreateLabel(6,120,300,70,'Your ping:',false,info) guiLabelSetColor(playerPing,0,255,0) guiSetText ( playerPing, getPlayerPing(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerPing,"Your ping :"..getPlayerPing(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerMoney = guiCreateLabel(6,150,300,70,'Your Money:',false,info) guiLabelSetColor(playerMoney,0,255,0) guiSetText ( playerMoney, getPlayerMoney(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerMoney,"Your Money :"..getPlayerMoney(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerTeam = guiCreateLabel(6,180,300,70,'Your Team:',false,info) guiLabelSetColor(playerTeam,0,255,0) guiSetText ( playerTeam, getPlayerTeam(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerTeam,"Your Team :"..getPlayerTeam(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerArmor = guiCreateLabel(6,210,300,70,'Your Armor:',false,info) guiLabelSetColor(playerArmor,0,255,0) guiSetText ( playerArmor, getPedArmor(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerArmor,"Your Armor :"..getPedArmor(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerSkin = guiCreateLabel(6,240,300,70,'Your Skin:',false,info) guiLabelSetColor(playerSkin,0,255,0) guiSetText ( playerSkin, getPedSkin(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerSkin,"Your Skin :"..getPedSkin(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerWeapon = guiCreateLabel(6,270,300,70,'Your Weapon:',false,info) guiLabelSetColor(playerWeapon,0,255,0) guiSetText ( playerWeapon, getPedWeapon(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerWeapon,"Your Weapon :"..getPedWeapon(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) id = guiCreateLabel(6,300,300,70,'Your id:',false,info) guiLabelSetColor(id,0,255,0) guiSetText ( id, getElementRadius(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(id,"Your id :"..getElementRadius(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) is = guiCreateLabel (6,300,420,70,'حياكم الله في سيرفرنا', false, tab5 ) guiLabelSetColor(is,0,127,255) ib = guiCreateLabel (6,330,420,70,'ـــــــــــــــــــــــــــــــ', false, tab5 ) guiLabelSetColor(ib,0,127,255) ix = guiCreateLabel(6,360,420,70,'Your Money:',false,tab5) guiLabelSetColor(ix,0,255,0) guiSetText ( ix, getPlayerMoney(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(ix,"Your Money :"..getPlayerMoney(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) Label = guiCreateLabel(0,78,480,20,"_______________________________________________________________________",false,info) tap2 = guiCreateTab("تسجيل+دخول",tabPanel) --------------------------------------------------------------------------------------------------------- user = guiCreateEdit(92,37,181,36,"",false,tap2) pass = guiCreateEdit(97,94,171,33,"",false,tap2) lname = guiCreateLabel(10,46,85,33,"اسمك:",false,tap2) guiLabelSetColor(lname,255,0,0) lpass = guiCreateLabel(12,98,85,33,"الرمز",false,tap2) guiLabelSetColor(lpass,255,0,0) onlogin = guiCreateButton(46,151,113,34,"login",false,tap2) onregister = guiCreateButton(191,152,113,34,"register",false,tap2) info = guiCreateLabel(21,202,346,30,"SADIQ",false,tap2) guiLabelSetColor(info,0,255,0) tab5 = guiCreateTab("ارسال الاموال",tabPanel) setTimer( function() playerList = guiCreateGridList(6, 6, 144, 400, false, tab5) guiGridListSetSelectionMode(playerList, 2) local cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) if ( cl and guiGetVisible(shopWindow) == true ) then for _,name in ipairs(getElementsByType("player")) do local rw = guiGridListAddRow(playerList) guiGridListSetItemText(playerList, rw, cl, getPlayerName(name), false, false) end addEventHandler("onClientGUIClick", playerList, onClickPlayerName) end end ,4000,0) nameEdit = guiCreateEdit(160,150,200,30,"",false,tab5) amountEdit = guiCreateEdit(160,200,100,30,"",false,tab5) sendBTN = guiCreateButton(150,280,130,36, "ارسال", false,tab5) ii = guiCreateLabel(6,390,420,70,"مود ارسال الاموال ولوحة تسجيل الدخولf2 ",false,tap5) guiLabelSetColor(ii,255,0,0) function onClickPlayerName () local name = guiGridListGetItemText(playerList, guiGridListGetSelectedItem(playerList), 1) guiSetText(nameEdit, name) end addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == sendBTN ) then playerNick = guiGetText(nameEdit) amount = guiGetText(amountEdit) triggerServerEvent("onSendMoney", getLocalPlayer(), playerNick, amount) end end) ----------------------------------------------------------------------------------------------------------- bindKey ( "F2" , "down" , function() if ( guiGetVisible ( shopWindow ) == true ) then guiSetVisible ( shopWindow ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( shopWindow ) == false ) then guiSetVisible ( shopWindow ,true ) showCursor (false ) guiSetInputEnabled(true)
-
انت سوي اكثر من جسم!! والجسم يعتمد على دقة الاحداثيات !! ؟؟
-
مسوي شوب وتخبيص عشان اللوحة والمود تجميع -_-" كوري , !!
-
انا قلت ان انا راسلت واحد وارسلي هو كود التحريك بس مختلف شوي من الي عندك بس ارجوكم افهموني انا الحين ما ابي احركه ان بس ابي اسوي الجسم بس الجسم مابي احركه الحركة بعدين خويي يقول ماب اديتور مايسوي بالضبط نفس في الفديو اذا الماب ايديتور مايسوي لك نفسة مالك الا الـ MoveObject ?
-
صعبة اشوف لك ملف "3000" سطر وش المشكلة بـ الضبط -_-" ؟
-
createObject -- انشاء الاوبجكت moveObject -- تحريك الاوبجكت setTimer -- التايمر للتحريك مثال بسيط على اي اوبجكت -_-" : object = createObject(id, x,y,z) function Move() setTimer (moveObject, 500, 1,object, 5000, x,y,z) end
-
https://forum.multitheftauto.com/viewtopic.php?f=119&t=46670 ------ ممكن الحين توضح وش المطلوب ؟ -_-" ؟
-
I forgot that too: warpPedIntoVehicle
-
Learn to read before u post, firstly that aint on his site, second i want it to be unique, which means its only sold to me, not anyone else Oh,My Bad .
-
@ ضاوي لآ addEventHandler( "onClientGUIClick", Button3 , Button3 ~= root واذا تبي تسوية نفس طريقتك بيكون طويلة لـ زر واحد وبتكون كذا : addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == Button3 ) then guiSetVisible(window,false) showCursor(false) end end )
-
function close(thePlayer) if ( thePlayer == Button3 ) then guiSetVisible(window,false) showCursor(false) end addEventHandler( "onClientGUIClick", close,) أتوقع كذا ض- لآ ذا اللي فوق شغال اللي سويتة بـ الرد اللي فوق ردك ^
-
https://forum.multitheftauto.com/viewtopic.php?f=108&t=52443
-
createMarker guiSetVisible showCursor guiCreateGridList guiGridListAddRow guiGridListSetItemText guiGridListSetItemData guiGridListGetItemText guiGridListGetItemData setElementModel createExplosion createVehicle triggerServerEvent event : onClientMarkerHit onClientGUIClick
-
addEventHandler( "onClientGUIClick", Button3 , function () guiSetVisible(window,false) showCursor(false,false) end ) الكود حق اسامة يكملة معك دامة بـدى فية لاني مافهمت الوضع ذذ .
-
^^ Problem Fixed By Me it,s not problem but it's damn something or like that so this topic going to the Hell or whatever . Locked Please . @ Max+ : root , is not defined on the command . bool addCommandHandler ( string commandName, function handlerFunction, [bool caseSensitive = true] ) addCommandHandler ( "", function handlerFunction )
-
مشكور تابل عـ التعديل نسيت انة لازم حدث لـ تثبيت المفتاح ذا حق الكود حق التصليح ض/ ذذ addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( "player" ) ) do bindKey ( v, "k", "down", Repair ) end end ) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "k", "down", Repair ) end ) function Repair(player) if ( getPlayerMoney (player) >= 5000 ) then takePlayerMoney(player, 5000) local vehicle = getPedOccupiedVehicle(player) if vehicle then fixVehicle(vehicle) outputChatBox("Vehicle Successfully Fixed", player, 255, 255, 0, true) else outputChatBox("Not enough money.", player, 255, 0, 0, true) end else outputChatBox("You are not in a vehicle", player, 255, 0, 0, true) end end
-
-_-" oh Damn My Bad So This Topic is going To The Hell .