Jump to content

DaminkO

Members
  • Posts

    133
  • Joined

  • Last visited

Everything posted by DaminkO

  1. نعتبر انا مسوي لوحة تعطي مود الاملاك الخاصة بالسيريال وش هم الفانكشن ؟
  2. --client local key = "F5" GUIEditor = { gridlist = {}, window = {}, button = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 699) / 2, (screenH - 493) / 2, 699, 493, "xX[rent system]Xx", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFEF500") guiSetVisible (GUIEditor.window[1],false) gridlist = guiCreateGridList(11, 33, 448, 450, false, GUIEditor.window[1]) guiGridListAddColumn(gridlist, "ID", 0.5) guiGridListAddColumn(gridlist, "Car Name", 0.5) GUIEditor.button[1] = guiCreateButton(466, 35, 223, 51, "xX[spawn Vehicle|اضهار السياره]Xx", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFECB00") GUIEditor.button[2] = guiCreateButton(466, 96, 223, 51, "xX[Destroy Vehicle|سحب السياره]Xx", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFECB00") GUIEditor.button[3] = guiCreateButton(466, 163, 223, 51, "xX[Warp To Vehicle|انتقال للسياره]Xx", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFECB00") GUIEditor.button[4] = guiCreateButton(466, 224, 223, 51, "xX[Warp Vehicle| نقل السياره]Xx", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFECB00") GUIEditor.button[6] = guiCreateButton(544, 308, 220, 56, "xX[Repair|اصلاح]Xx", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFECB00") function Show_Hide() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey(key,"down",Show_Hide) Cars = { {"Infernus",411} } for Key, Value in ipairs(Cars) do local Row = guiGridListAddRow(gridlist) guiGridListSetItemText(gridlist, Row, 1, Value[1], false, false) guiGridListSetItemText(gridlist, Row, 2, Value[2], false, false) end addEventHandler ('onClientGUIClick',GUIEditor.button[1],function () if ( guiGridListGetSelectedItem (gridlist) ~= -1 ) then local id = guiGridListGetItemText (gridlist,guiGridListGetSelectedItem (gridlist),2) triggerServerEvent('spawn',localPlayer,id) end end,false) addEventHandler ('onClientGUIClick',GUIEditor.button[2],function () if ( guiGridListGetSelectedItem (gridlist) ~= -1 ) then local id = guiGridListGetItemText (gridlist,guiGridListGetSelectedItem (gridlist),2) triggerServerEvent('Destroy',localPlayer,id) end end,false) addEventHandler ("onClientGUIClick",root, function () if source == GUIEditor.button[3] then if ( guiGridListGetSelectedItem (gridlist) ~= -1 ) then local id = guiGridListGetItemText (gridlist,guiGridListGetSelectedItem (gridlist),2) triggerServerEvent("WarpToVehicle",source,id) end end end,false) --Server nVehicle = {}, addEvent("spawn",true) addEventHandler("spawn",root,function (vehicleID) local x, y, z = getElementPosition (source) local _,_,r = getPedRotation (source) nVehicle[source] = createVehicle (vehicleID, x, y, z+1, 0, 0,r) warpPedIntoVehicle (source,nVehicle[source] ) end) addEvent("Destroy",true) addEventHandler("Destroy",root,function (vehicleID) destroyElement (nVehicle[source]) end) addEvent("WarpToVehicle",true) addEventHandler("WarpToVehicle",root, function (source , id) warpPlayerIntoVehicle (source , id) end )
  3. ممكن اصلاح الخطأ --Client local key = "F5" GUIEditor = { gridlist = {}, window = {}, button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 699) / 2, (screenH - 493) / 2, 699, 493, "xX[rent system]Xx", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFEF500") guiSetVisible (GUIEditor.window[1],false) gridlist = guiCreateGridList(11, 33, 448, 450, false, GUIEditor.window[1]) guiGridListAddColumn(gridlist, "ID", 0.5) guiGridListAddColumn(gridlist, "Car Name", 0.5) GUIEditor.button[1] = guiCreateButton(466, 35, 223, 51, "اضهار سيارة", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFABA500") GUIEditor.button[2] = guiCreateButton(466, 96, 223, 51, "سحب السياره", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFABA500") GUIEditor.button[3] = guiCreateButton(469, 163, 221, 51, " الانتقال للسياره", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFABA500") GUIEditor.button[4] = guiCreateButton(468, 224, 221, 51, "انتقال السياره", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFABA500") function Show_Hide() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey(key,"down",Show_Hide) Cars = { {"Infernus",411} } for Key, Value in ipairs(Cars) do local Row = guiGridListAddRow(gridlist) guiGridListSetItemText(gridlist, Row, 1, Value[1], false, false) guiGridListSetItemText(gridlist, Row, 2, Value[2], false, false) end addEventHandler ('onClientGUIClick',GUIEditor.button[1],function () if ( guiGridListGetSelectedItem (gridlist) ~= -1 ) then local id = guiGridListGetItemText (gridlist,guiGridListGetSelectedItem (gridlist),2) triggerServerEvent('spawn',localPlayer,id) end end,false) addEventHandler ('onClientGUIClick',GUIEditor.button[2],function () if ( guiGridListGetSelectedItem (gridlist) ~= -1 ) then local id = guiGridListGetItemText (gridlist,guiGridListGetSelectedItem (gridlist),2) triggerServerEvent('Destroy',localPlayer,id) end end,false) end) --Server nVehicle = {}, addEvent("spawn",true) addEventHandler("spawn",root,function (vehicleID) local x, y, z = getElementPosition (source) local _,_,r = getPedRotation (source) nVehicle[source] = createVehicle (vehicleID, x, y, z+1, 0, 0,r) warpPedIntoVehicle (source,nVehicle[source] ) end) addEvent("Destroy",true) addEventHandler("Destroy",root,function (vehicleID) local x, y, z = getElementPosition (source) local _,_,r = getPedRotation (source) nVehicle[source] = destroyElement (vehicleID, x, y, z+1, 0, 0,r) end)
  4. ماتنفع السياره بجهة كلنت والسبب انك ماتقدر تركبها فلازم تكون سيرفر + طرحت لك كود فوق جاهز شوفه واتعلم منه يعني اسوي ترايقر ؟
  5. local key = "F5" GUIEditor = { gridlist = {}, window = {}, button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 699) / 2, (screenH - 493) / 2, 699, 493, "xX[rent system]Xx", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFEF500") guiSetVisible (GUIEditor.window[1],false) gridlist = guiCreateGridList(11, 33, 448, 450, false, GUIEditor.window[1]) guiGridListAddColumn(gridlist, "ID", 0.5) guiGridListAddColumn(gridlist, "Car Name", 0.5) GUIEditor.button[1] = guiCreateButton(466, 35, 223, 51, "Spawn Vehicle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFABA500") GUIEditor.button[2] = guiCreateButton(466, 96, 223, 51, "Destroy Vehicle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFABA500") GUIEditor.button[3] = guiCreateButton(469, 163, 221, 51, "Warp to Vehicle ", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFABA500") GUIEditor.button[4] = guiCreateButton(468, 224, 221, 51, "Warp Vehicle to You", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFABA500") function Show_Hide() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey(key,"down",Show_Hide) Cars = { {"Infernus",411} } for Key, Value in ipairs(Cars) do local Row = guiGridListAddRow(gridlist) guiGridListSetItemText(gridlist, Row, 1, Value[1], false, false) guiGridListSetItemText(gridlist, Row, 2, Value[2], false, false) end addEventHandler ('onClientGUIClick',GUIEditor.button[1],function () if ( guiGridListGetSelectedItem (gridlist) ~= -1 ) then local id = guiGridListGetItemText (gridlist,guiGridListGetSelectedItem (gridlist),2) triggerServerEvent('spawn',localPlayer,id) end end,false) end) addEventHandler ( "onClientGUIClick", root, function () if source == GUIEditor.button[3] then local x,y,z = getElementPosition(source) local sel = guiGridListGetSelectedItem ( Cars ) if sel ~= -1 then local ID = guiGridListSetItemData( Cars , guiGridListGetSelectedItem ( gridlist ), 1 ) createVehicle(ID,x,y,z) end end end )
  6. يشخبط زي ما هو عايز ض1
  7. ابي فنكشنات حق تصليح السياره و سحب السياره و الانتقال للسياره
  8. --client local key = "F5" GUIEditor = { gridlist = {}, window = {}, button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 699) / 2, (screenH - 493) / 2, 699, 493, "xX[rent system]Xx", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFEF500") guiSetVisible (GUIEditor.window[1],false) gridlist = guiCreateGridList(11, 33, 448, 450, false, GUIEditor.window[1]) guiGridListAddColumn(gridlist, "ID", 0.5) guiGridListAddColumn(gridlist, "Car Name", 0.5) GUIEditor.button[1] = guiCreateButton(466, 35, 223, 51, "Spawn Vehicle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFABA500") GUIEditor.button[2] = guiCreateButton(466, 96, 223, 51, "Destroy Vehicle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFABA500") GUIEditor.button[3] = guiCreateButton(469, 163, 221, 51, "Warp to Vehicle ", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFABA500") GUIEditor.button[4] = guiCreateButton(468, 224, 221, 51, "Warp Vehicle to You", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFABA500") function Show_Hide() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey(key,"down",Show_Hide) Cars = { {"Infernus",411} } for Key, Value in ipairs(Cars) do local Row = guiGridListAddRow(gridlist) guiGridListSetItemText(gridlist, Row, 1, Value[1], false, false) guiGridListSetItemText(gridlist, Row, 2, Value[2], false, false) guiGridListSetItemData(gridlist, Row, 1, {Value[1], Value[2], Value[3]}) end end) addEventHandler ('onClientGUIClick',GUIEditor.button[1] function () triggerServerEvent ('spawn',Player) end ) --server addEvent ("spawn") addEventHandler ("spawn",Player function () createVehicle (source) end ) وش هو الخطأ
  9. اوك ممكن فانكشن حق انزال السياره ؟
  10. local key = "F5" GUIEditor = { gridlist = {}, window = {}, button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 699) / 2, (screenH - 493) / 2, 699, 493, "xX[rent system]Xx", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFEF500") guiSetVisible (GUIEditor.window[1],false) gridlist = guiCreateGridList(11, 33, 448, 450, false, GUIEditor.window[1]) guiGridListAddColumn(gridlist, "ID", 0.5) guiGridListAddColumn(gridlist, "Car Name", 0.5) GUIEditor.button[1] = guiCreateButton(466, 35, 223, 51, "Spawn Vehicle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFABA500") GUIEditor.button[2] = guiCreateButton(466, 96, 223, 51, "Destroy Vehicle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFABA500") GUIEditor.button[3] = guiCreateButton(469, 163, 221, 51, "Warp to Vehicle ", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFABA500") GUIEditor.button[4] = guiCreateButton(468, 224, 221, 51, "Warp Vehicle to You", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFABA500") end ) function Show_Hide() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey(key,"down",Show_Hide) Cars = { {"Infernus",411} } for Key, Value in ipairs(Cars) do local Row = guiGridListAddRow(gridlist) guiGridListSetItemText(gridlist, Row, 1, Value[1], false, false) guiGridListSetItemData(gridlist, Row, 1, {Value[2][1], Value[2][2], Value[2][3]}) end
  11. انا رح احط اللوحة فقط للي عنده رتبه VIP
  12. انا رح احط اللوحة فقط للي عنده رتبه VIP
  13. spawn = انزل سياره
  14. spawn = انزل سياره
  15. سباون اضهار الموتر
  16. سباون اضهار الموتر
  17. جيب مثال
  18. جيب مثال
  19. وكيف احط المواتر في القرد لست ؟؟؟؟؟
  20. وكيف احط المواتر في القرد لست ؟؟؟؟؟
  21. GUIEditor = { checkbox = {}, scrollpane = {}, button = {}, window = {}, gridlist = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 627) / 2, (screenH - 427) / 2, 627, 427, "V.I.P Car System", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFFF500") GUIEditor.gridlist[1] = guiCreateGridList(12, 25, 378, 392, false, GUIEditor.window[1]) GUIEditor.gridlist[2] = guiCreateGridList(8, 10, 360, 368, false, GUIEditor.gridlist[1]) guiGridListAddColumn(GUIEditor.gridlist[2], "#ID", 0.5) guiGridListAddColumn(GUIEditor.gridlist[2], "#Car Name", 0.5) GUIEditor.button[1] = guiCreateButton(399, 32, 218, 45, "Spawn", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFFF500") GUIEditor.button[2] = guiCreateButton(402, 87, 215, 45, "Teleport to the vehicle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFFF500") GUIEditor.button[3] = guiCreateButton(400, 142, 215, 45, "Destroy vehicle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFFF500") GUIEditor.checkbox[1] = guiCreateCheckBox(402, 197, 15, 19, "", false, false, GUIEditor.window[1]) GUIEditor.scrollpane[1] = guiCreateScrollPane(421, 201, 194, 15, "test", false, GUIEditor.window[1]) GUIEditor.scrollpane[2] = guiCreateScrollPane(421, 226, 194, 15, false, GUIEditor.window[1]) GUIEditor.checkbox[2] = guiCreateCheckBox(402, 222, 15, 19, "", false, false, GUIEditor.window[1]) end ) كيف اسوي سباون و كيف احط المواتر في القريد لست و كيف سحب سياره و كيف انتقال ليها ؟؟؟؟؟
  22. GUIEditor = { checkbox = {}, scrollpane = {}, button = {}, window = {}, gridlist = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 627) / 2, (screenH - 427) / 2, 627, 427, "V.I.P Car System", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFFF500") GUIEditor.gridlist[1] = guiCreateGridList(12, 25, 378, 392, false, GUIEditor.window[1]) GUIEditor.gridlist[2] = guiCreateGridList(8, 10, 360, 368, false, GUIEditor.gridlist[1]) guiGridListAddColumn(GUIEditor.gridlist[2], "#ID", 0.5) guiGridListAddColumn(GUIEditor.gridlist[2], "#Car Name", 0.5) GUIEditor.button[1] = guiCreateButton(399, 32, 218, 45, "Spawn", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFFF500") GUIEditor.button[2] = guiCreateButton(402, 87, 215, 45, "Teleport to the vehicle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFFF500") GUIEditor.button[3] = guiCreateButton(400, 142, 215, 45, "Destroy vehicle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFFF500") GUIEditor.checkbox[1] = guiCreateCheckBox(402, 197, 15, 19, "", false, false, GUIEditor.window[1]) GUIEditor.scrollpane[1] = guiCreateScrollPane(421, 201, 194, 15, "test", false, GUIEditor.window[1]) GUIEditor.scrollpane[2] = guiCreateScrollPane(421, 226, 194, 15, false, GUIEditor.window[1]) GUIEditor.checkbox[2] = guiCreateCheckBox(402, 222, 15, 19, "", false, false, GUIEditor.window[1]) end ) كيف اسوي سباون و كيف احط المواتر في القريد لست و كيف سحب سياره و كيف انتقال ليها ؟؟؟؟؟
  23. استضافة النصابة لا تشترو من عندة
  24. وش هو الخطأ x = 5 y = 3 w = x+y outputChatBox(w)
×
×
  • Create New...