تفضل
carid = { {"Broadway", 575}, {"Buccaneer", 518}, {"Esperanto", 419}, {"Remington", 534}, {"Savanna", 567}, {"Slamvan", 535}, {"Tornado", 576}, {"Voodoo", 412}, {"Blista Compact", 496}, {"Bravura", 401}, {"Cadrona", 527}, {"Clover", 542}, {"Feltzer", 533}, {"Fortune", 526}, {"Hermes", 474}, {"Hustler", 545}, {"Majestic", 517}, {"Manana", 410}, {"Previon", 436}, {"Sabre", 475}, {"Stallion", 439}, {"Tampa", 549}, {"Virgo", 491}, {"Admiral", 445}, {"Cabbie", 438}, {"Elegant", 507}, {"Emperor", 585}, {"Glendale", 466}, {"Greenwood", 492}, {"Intruder", 546}, {"Merit", 551}, {"Nebula", 516}, {"Oceanic", 467}, {"Premier", 426}, {"Primo", 547}, {"Sentinel", 405}, {"Stafford", 580}, {"Stretch", 409}, {"Sunrise", 550}, {"Tahoma", 566}, {"Taxi", 420}, {"Vincent", 540}, {"Washington", 421}, {"Willard", 529}, {"Ambulance", 416}, {"Barracks", 433}, {"Enforcer", 427}, {"FBI rancher", 490}, {"FBI truck", 528}, {"Fire truck", 407}, {"Fire truck (ladder)", 544}, {"Police car (LS)", 596}, {"Police car (LV)", 598}, {"Police car (SF)", 597}, {"Police ranger", 599}, {"S.W.A.T.", 601}, {"Cement truck", 524}, {"DFT-30", 578}, {"Dozer", 486}, {"Dumper", 406}, {"Alpha", 602}, {"Banshee", 429}, {"Buffalo", 402}, {"Bullet", 541}, {"Cheetah", 415}, {"Comet", 480}, {"Elegy", 562}, {"Euros", 587}, {"Flash", 565}, {"Infernus", 411}, {"Jester", 559}, {"Phoenix", 603}, {"Sultan", 560}, {"Super GT", 506}, {"Turismo", 451}, {"Uranus", 558}, {"Windsor", 555}, {"ZR-350", 477}, {"Blade", 536}, {"Dune", 573}, {"Flatbed", 455}, {"Forklift", 530}, {"Linerunner", 403}, {"Packer", 443}, {"Roadtrain", 515}, {"Sweeper", 574}, {"Tanker", 514}, {"Towtruck", 525}, {"Trashmaster", 408}, {"Utility van", 552}, {"Benson", 499}, {"Black Boxville", 609}, {"Bobcat", 422}, {"Boxville", 498}, {"Mule", 414}, {"Picador", 600}, {"Sadler", 543}, {"Securicar", 428}, {"Walton", 478}, {"Yankee", 456}, {"Yosemite", 554}, {"Berkley's RC van", 459}, {"Burrito", 482}, {"Camper", 483}, {"Journey", 508}, {"Moonbeam", 418}, {"News van", 582}, {"Bike", 509}, {"BMX", 481}, {"Mountain bike", 510}, {"Cargobob", 548}, {"Leviathan", 417}, {"Maverick", 487}, {"News Chopper", 488}, {"Police Maverick", 497}, {"Sparrow", 469}, {"Beagle", 511}, {"Cropduster", 512}, {"Dodo", 593}, {"Nevada", 553}, {"Rustler", 476}, {"Shamal", 519}, {"Skimmer", 460}, {"Stuntplane", 513}, {"Pony", 413}, {"Rumpo", 440}, {"Baggage", 485}, {"Bandito", 568}, {"BF Injection", 424}, {"Bloodring Banger", 504}, {"Bus", 431}, {"Caddy", 457}, {"Coach", 437}, {"Combine harvester", 532}, {"Hotknife", 434}, {"Hotring racer", 494}, {"Hotring racer 2", 502}, {"Hotring racer 3", 503}, {"Monster", 444}, {"Monster 2", 556}, {"Monster 3", 557}, {"Mower", 572}, {"Mr. Whoopee", 423}, {"Kart", 571}, {"Tractor", 531}, {"Tug", 583}, {"Vortex", 539}, {"RC Bandit", 441}, {"RC Baron", 464}, {"RC Flower Pot", 594}, {"RC Goblin", 501}, {"RC Raider", 465}, {"RC Tiger", 564}, {"Club", 589}, {"Huntley", 579}, {"Landstalker", 400}, {"Mesa", 500}, {"Patriot", 470}, {"Perennial", 404}, {"Rancher", 489}, {"Regina", 479}, {"Romero", 442}, {"Sandking", 495}, {"Solair", 458}, {"Stratum", 561}, {"Coastguard", 472}, {"Dinghy", 473}, {"Jetmax", 493}, {"Launch", 595}, {"Marquis", 484}, {"Predator", 430}, {"Reefer", 453}, {"Speeder", 452}, {"Squalo", 446}, {"Tropic", 454}, {"BF-400", 581}, {":O", 462}, {"FCR-900", 521}, {"Freeway", 463}, {"HPV1000", 523}, {"NRG-500", 522}, {"PCJ-600", 461}, {"Pizza Boy", 448}, {"Sanchez", 468}, {"Wayfarer", 586}, {"Quadbike", 471}, } GUIEditor = { gridlist = {}, button = {}, window = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(187, 90, 454, 423, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF7BB06") GUIEditor.gridlist[1] = guiCreateGridList(10, 29, 165, 242, false, GUIEditor.window[1]) g2 = guiGridListAddColumn(GUIEditor.gridlist[1], "Playres", 0.9) for i,v in ipairs(getElementsByType("player")) do local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1], row, 1, getPlayerName(v), false, false) end GUIEditor.gridlist[2] = guiCreateGridList(263, 30, 165, 242, false, GUIEditor.window[1]) g = guiGridListAddColumn(GUIEditor.gridlist[2], "car", 0.5) g1 = guiGridListAddColumn(GUIEditor.gridlist[2], "id", 0.5) for i , v in ipairs ( carid ) do local row2 = guiGridListAddRow (GUIEditor.gridlist[2]) guiGridListSetItemText(GUIEditor.gridlist[2],row2 ,g,v[1],false,false); guiGridListSetItemText(GUIEditor.gridlist[2],row2 ,g1,v[2],false,false); guiGridListSetItemData (GUIEditor.gridlist[2] , row2 , g1 , v[2] ,false,false) end GUIEditor.button[1] = guiCreateButton(12, 287, 171, 25, "انشاء موتر", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[2] = guiCreateButton(10, 319, 171, 25, "نقل الاعب لي الموتر", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF0000") GUIEditor.button[3] = guiCreateButton(10, 354, 171, 25, "نقل الموتر آلى آلاعب", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000") GUIEditor.button[4] = guiCreateButton(262, 286, 171, 25, " +100اعطاء درع", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFF0000") GUIEditor.button[5] = guiCreateButton(263, 317, 171, 25, "اعطاء دم +200", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFFF0000") GUIEditor.button[6] = guiCreateButton(10, 384, 171, 25, "سحب الموتر", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFF0000") showCursor(true) end ) ---------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------- --------------------------------------------- function vehicle() if source == GUIEditor.button[1] then local row = guiGridListAddRow (GUIEditor.gridlist[2]) guiGridListGetItemText(GUIEditor.gridlist[2], guiGridListGetSelectedItem(GUIEditor.gridlist[2]), 1) guiGridListGetItemData(GUIEditor.gridlist[2], guiGridListGetSelectedItem(GUIEditor.gridlist[2]), 1) triggerServerEvent( 'Cvehicle', localPlayer) elseif source == GUIEditor.button[2] then triggerServerEvent( 'wrepplayre', localPlayer) elseif source == GUIEditor.button[3] then triggerServerEvent( 'werpvehicle', localPlayer) elseif source == GUIEditor.button[6] then