Wleed1998 Posted June 30, 2016 Author Share Posted June 30, 2016 كودك كله اخطاء من اوله لين آخره وش تبي تسوي بالضبط عشان نقدر نساعدك ؟ بسوي لوحة املاك خاصه جريد لست فيه اسماء لعيبه و تحته زرين 1- تعبيت درع 2- تعبيت دم التحديد من قريد لست العيبها و ثاني تحته 1- انشاء سياره لما يحدد من القريد 2- سحب السياره 3- الانتقال الى السياره 4- نقل السياره الى الاعب Link to comment
فاّرس Posted June 30, 2016 Share Posted June 30, 2016 كل اللي قلته واضح من كودك, بس اللي اقصده اي سياره تبيه يسحبها؟ واي سياره اللي تبيه ينتقل لها؟ Link to comment
Adham Posted June 30, 2016 Share Posted June 30, 2016 اول شي يحدد قريد لست اسم الاعب ويعطي دم . "onClientGUIClick" guiGridListGetItemText guiGridListGetSelectedItem triggerServerEvent getPlayerFromName setElementHealth اذا حدد اسم يعطيه درع . "onClientGUIClick" guiGridListGetItemText guiGridListGetSelectedItem triggerServerEvent getPlayerFromName setPedArmor اذا حدد سياره من القريد يطلع له سياره "onClientGUIClick" guiGridListGetSelectedItem guiGridListGetItemData triggerServerEvent table = { } isElement destroyElement getElementPosition createVehicle 'onPlayerQuit' -- عشان لما يطلع من السرفر السياره تتسحب isElement destroyElement "onClientGUIClick" warpPedIntoVehicle Link to comment
Wleed1998 Posted June 30, 2016 Author Share Posted June 30, 2016 اول شي يحدد قريد لست اسم الاعب ويعطي دم . "onClientGUIClick" guiGridListGetItemText guiGridListGetSelectedItem triggerServerEvent getPlayerFromName setElementHealth اذا حدد اسم يعطيه درع . "onClientGUIClick" guiGridListGetItemText guiGridListGetSelectedItem triggerServerEvent getPlayerFromName setPedArmor اذا حدد سياره من القريد يطلع له سياره ب "onClientGUIClick" guiGridListGetSelectedItem guiGridListGetItemData triggerServerEvent table = { } isElement destroyElement getElementPosition createVehicle 'onPlayerQuit' -- عشان لما يطلع من السرفر السياره تتسحب isElement destroyElement "onClientGUIClick" warpPedIntoVehicle مشكور اخي انت و شاطح ووكل الي ساعدوني بروب بجرب Link to comment
Wleed1998 Posted June 30, 2016 Author Share Posted June 30, 2016 اول شي يحدد قريد لست اسم الاعب ويعطي دم . "onClientGUIClick" guiGridListGetItemText guiGridListGetSelectedItem triggerServerEvent getPlayerFromName setElementHealth اذا حدد اسم يعطيه درع . "onClientGUIClick" guiGridListGetItemText guiGridListGetSelectedItem triggerServerEvent getPlayerFromName setPedArmor اذا حدد سياره من القريد يطلع له سياره ب "onClientGUIClick" guiGridListGetSelectedItem guiGridListGetItemData triggerServerEvent table = { } isElement destroyElement getElementPosition createVehicle 'onPlayerQuit' -- عشان لما يطلع من السرفر السياره تتسحب isElement destroyElement "onClientGUIClick" warpPedIntoVehicle مشكور اخي انت و شاطح ووكل الي ساعدوني بروب بجرب 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}, {"Faggio", 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) 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) 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") end ) ---------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------- function cars () for i , v in ipairs ( carid ) do Row = guiGridListAddRow (GUIEditor.gridlist[2]) guiGridListSetItemText(GUIEditor.gridlist[2],Row ,g,v[1],false,false); guiGridListSetItemText(GUIEditor.gridlist[2],Row ,g1,v[2],false,false); guiGridListSetItemData (GUIEditor.gridlist[2] , Row , g1 , v[2] ,false,false) end end function All () guiGridListClear(GUIEditor.gridlist[1]) 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 end --------------------------------------------- function Link to comment
Wleed1998 Posted June 30, 2016 Author Share Posted June 30, 2016 اول شي يحدد قريد لست اسم الاعب ويعطي دم . "onClientGUIClick" guiGridListGetItemText guiGridListGetSelectedItem triggerServerEvent getPlayerFromName setElementHealth اذا حدد اسم يعطيه درع . "onClientGUIClick" guiGridListGetItemText guiGridListGetSelectedItem triggerServerEvent getPlayerFromName setPedArmor اذا حدد سياره من القريد يطلع له سياره ب "onClientGUIClick" guiGridListGetSelectedItem guiGridListGetItemData triggerServerEvent table = { } isElement destroyElement getElementPosition createVehicle 'onPlayerQuit' -- عشان لما يطلع من السرفر السياره تتسحب isElement destroyElement "onClientGUIClick" warpPedIntoVehicle مشكور اخي انت و شاطح ووكل الي ساعدوني بروب بجرب 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}, {"Faggio", 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) 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) 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") end ) ---------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------- function cars () for i , v in ipairs ( carid ) do Row = guiGridListAddRow (GUIEditor.gridlist[2]) guiGridListSetItemText(GUIEditor.gridlist[2],Row ,g,v[1],false,false); guiGridListSetItemText(GUIEditor.gridlist[2],Row ,g1,v[2],false,false); guiGridListSetItemData (GUIEditor.gridlist[2] , Row , g1 , v[2] ,false,false) end end function All () guiGridListClear(GUIEditor.gridlist[1]) 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 end --------------------------------------------- function Link to comment
فاّرس Posted June 30, 2016 Share Posted June 30, 2016 ^ وش تبي بالديبوق الكود واضح كله اخطاء, قلت لك عطني وظائف الزرار وش تبي بالضبط عشان نقدر نساعدك. Link to comment
Wleed1998 Posted June 30, 2016 Author Share Posted June 30, 2016 وش يجيك بالديبق ؟ debugscript 3 Link to comment
Adham Posted June 30, 2016 Share Posted June 30, 2016 كمل انت الباقي السويته لك اذا حدد سياره من القريد تنزل , وتسحب سياره #Client addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == CreatedCar then local Se = guiGridListGetSelectedItem( gridlist ) local ID = guiGridListGetItemData ( gridlist , Se , cow2 ) triggerServerEvent ( "GiveVehicle",localPlayer , ID ) elseif source == Destroy then triggerServerEvent ( "Destroy",localPlayer) end end ) ; #Server local table = { } addEvent("GiveVehicle" ,true) addEventHandler("GiveVehicle" ,root, function ( ID ) if isElement( table[ source ] ) then destroyElement ( table[ source] ) end local PosX , PosY , PosZ = getElementPosition ( source ) table[ source ] = createVehicle( ID , PosX , PosY , PosZ ) end ) addEvent( "Destroy2", true ) addEventHandler( "Destroy2",root, function ( ) local Veh = getPedOccupiedVehicle ( source ) if Veh then destroyElement ( getPedOccupiedVehicle(source),Veh ) end end ) Link to comment
Wleed1998 Posted June 30, 2016 Author Share Posted June 30, 2016 كمل انت الباقي السويته لك اذا حدد سياره من القريد تنزل , وتسحب سياره#Client addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == CreatedCar then local Se = guiGridListGetSelectedItem( gridlist ) local ID = guiGridListGetItemData ( gridlist , Se , cow2 ) triggerServerEvent ( "GiveVehicle",localPlayer , ID ) elseif source == Destroy then triggerServerEvent ( "Destroy",localPlayer) end end ) ; #Server local table = { } addEvent("GiveVehicle" ,true) addEventHandler("GiveVehicle" ,root, function ( ID ) if isElement( table[ source ] ) then destroyElement ( table[ source] ) end local PosX , PosY , PosZ = getElementPosition ( source ) table[ source ] = createVehicle( ID , PosX , PosY , PosZ ) end ) addEvent( "Destroy2", true ) addEventHandler( "Destroy2",root, function ( ) local Veh = getPedOccupiedVehicle ( source ) if Veh then destroyElement ( getPedOccupiedVehicle(source),Veh ) end end ) ماظهر شيء ابدا الرجاء حل المشكله Link to comment
Adham Posted June 30, 2016 Share Posted June 30, 2016 العيبه امسك , function update () guiGridListClear(GridName) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (GridName) guiGridListSetItemText (Gridname,rp,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) التظهر for i , v in ipairs ( carid ) do Row = guiGridListAddRow ( gridlist ) guiGridListSetItemText( gridlist,Row ,cow1,v[1],false,false); guiGridListSetItemText( gridlist,Row ,cow2,v[2],false,false); guiGridListSetItemData ( gridlist , Row , cow2 , v[2] ,false,false) end 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}, } Link to comment
Wleed1998 Posted June 30, 2016 Author Share Posted June 30, 2016 العيبه امسك , function update () guiGridListClear(GridName) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (GridName) guiGridListSetItemText (Gridname,rp,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) التظهر for i , v in ipairs ( carid ) do Row = guiGridListAddRow ( gridlist ) guiGridListSetItemText( gridlist,Row ,cow1,v[1],false,false); guiGridListSetItemText( gridlist,Row ,cow2,v[2],false,false); guiGridListSetItemData ( gridlist , Row , cow2 , v[2] ,false,false) end 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}, } اسماء العيبه ظهرت لكن السيارات ماظهرت Link to comment
Adham Posted June 30, 2016 Share Posted June 30, 2016 local Vehicles = { {"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}, {"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}, {"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}, {"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}, {"Faggio", 462}, {"FCR-900", 521}, {"Freeway", 463}, {"HPV1000", 523}, {"NRG-500", 522}, {"PCJ-600", 461}, {"Pizza Boy", 448}, {"Sanchez", 468}, {"Wayfarer", 586}, {"Quadbike", 471}, {"Bike", 509}, {"BMX", 481}, {"Mountain bike", 510}, {"Cargobob", 548}, {"Leviathan", 417}, {"Maverick", 487}, {"News Chopper", 488}, {"Police Maverick", 497}, {"Raindance", 563}, {"Sparrow", 469}, {"Beagle", 511}, {"Cropduster", 512}, {"Dodo", 593}, {"Nevada", 553}, {"Rustler", 476}, {"Shamal", 519}, {"Skimmer", 460}, {"Stuntplane", 513} } for i , v in ipairs ( Vehicles ) do Row = guiGridListAddRow ( GUIEditor.gridlist[2] ) guiGridListSetItemText( GUIEditor.gridlist[2],Row ,1,v[1],false,false); guiGridListSetItemText( GUIEditor.gridlist[2],Row ,2,v[2],false,false); guiGridListSetItemData ( GUIEditor.gridlist[2] , Row , 2 , v[2] ,false,false) end Link to comment
N3xT Posted June 30, 2016 Share Posted June 30, 2016 العيبه امسك , function update () guiGridListClear(GridName) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (GridName) guiGridListSetItemText (Gridname,rp,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) التظهر for i , v in ipairs ( carid ) do Row = guiGridListAddRow ( gridlist ) guiGridListSetItemText( gridlist,Row ,cow1,v[1],false,false); guiGridListSetItemText( gridlist,Row ,cow2,v[2],false,false); guiGridListSetItemData ( gridlist , Row , cow2 , v[2] ,false,false) end 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}, } cow2 cow1 من وين جبتها ؟ Link to comment
Adham Posted June 30, 2016 Share Posted June 30, 2016 انا اخدتها من كودي لاكن هيا شغاله لو سميت , ال كلوم cow 1 ^ Link to comment
N3xT Posted June 30, 2016 Share Posted June 30, 2016 يب هي بتشتغل إذا سويت كولمن وعرفته لكن الحين طبعاً ما بتشتغل Link to comment
Wleed1998 Posted June 30, 2016 Author Share Posted June 30, 2016 local Vehicles = { {"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}, {"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}, {"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}, {"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}, {"Bike", 509}, {"BMX", 481}, {"Mountain bike", 510}, {"Cargobob", 548}, {"Leviathan", 417}, {"Maverick", 487}, {"News Chopper", 488}, {"Police Maverick", 497}, {"Raindance", 563}, {"Sparrow", 469}, {"Beagle", 511}, {"Cropduster", 512}, {"Dodo", 593}, {"Nevada", 553}, {"Rustler", 476}, {"Shamal", 519}, {"Skimmer", 460}, {"Stuntplane", 513} } for i , v in ipairs ( Vehicles ) do Row = guiGridListAddRow ( GUIEditor.gridlist[2] ) guiGridListSetItemText( GUIEditor.gridlist[2],Row ,1,v[1],false,false); guiGridListSetItemText( GUIEditor.gridlist[2],Row ,2,v[2],false,false); guiGridListSetItemData ( GUIEditor.gridlist[2] , Row , 2 , v[2] ,false,false) end ماجاء شيء Link to comment
N3xT Posted June 30, 2016 Share Posted June 30, 2016 تفضل 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 Link to comment
Wleed1998 Posted June 30, 2016 Author Share Posted June 30, 2016 تفضل 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 Link to comment
Adham Posted June 30, 2016 Share Posted June 30, 2016 local table = { } addEvent("Cvehicle",true) addEventHandler("Cvehicle",root, function () if isElement( table[ source ]) then destroyElement( table[ source ]) end local x,y,z = getElementPosition( source ) table[ source ] = createVehicle ( carid, x, y, z) end ) addEvent("wrepplayre",true) addEventHandler("wrepplayre",root, function() local Veh = getPedOccupiedVehicle ( source ) if Veh then if not isElement( Veh) then local x, y, z = getElementPosition( Veh) setElementPosition(source, x, y, z) warpPlayerIntoVehicle(source, Veh) end end) addEvent("werpvehicle",true) addEventHandler("werpvehicle",root, function() local Veh = getPedOccupiedVehicle ( source ) if Veh then if not isElement(Veh ) then local x, y, z = getElementPosition(source) setElementPosition(Veh x, y, z) warpPlayerIntoVehicle(source,Veh) end end ) addEvent("desvehicle",true) addEventHandler("desvehicle",root, function () local Veh = getPedOccupiedVehicle ( source ) if Veh then destroyElement ( Veh ) end end ) addEvent("armor",true) addEventHandler("armor",root, function () Player = getPlayerFromName ( al ) if getPedArmor(source) ~= 100 then if (Player) then setPedArmor( source, 100 ) end end end ) addEvent("armor",true) addEventHandler("armor",root, function () Player = getPlayerFromName ( All ) if setElementHealth (source) ~= 200 then if (Player) then setElementHealth ( source,200 ) end end end ) Link to comment
Wleed1998 Posted June 30, 2016 Author Share Posted June 30, 2016 local table = { } addEvent("Cvehicle",true) addEventHandler("Cvehicle",root, function () if isElement( table[ source ]) then destroyElement( table[ source ]) end local x,y,z = getElementPosition( source ) table[ source ] = createVehicle ( carid, x, y, z) end ) addEvent("wrepplayre",true) addEventHandler("wrepplayre",root, function() local Veh = getPedOccupiedVehicle ( source ) if Veh then if not isElement( Veh) then local x, y, z = getElementPosition( Veh) setElementPosition(source, x, y, z) warpPlayerIntoVehicle(source, Veh) end end) addEvent("werpvehicle",true) addEventHandler("werpvehicle",root, function() local Veh = getPedOccupiedVehicle ( source ) if Veh then if not isElement(Veh ) then local x, y, z = getElementPosition(source) setElementPosition(Veh x, y, z) warpPlayerIntoVehicle(source,Veh) end end ) addEvent("desvehicle",true) addEventHandler("desvehicle",root, function () local Veh = getPedOccupiedVehicle ( source ) if Veh then destroyElement ( Veh ) end end ) addEvent("armor",true) addEventHandler("armor",root, function () Player = getPlayerFromName ( al ) if getPedArmor(source) ~= 100 then if (Player) then setPedArmor( source, 100 ) end end end ) addEvent("armor",true) addEventHandler("armor",root, function () Player = getPlayerFromName ( All ) if setElementHealth (source) ~= 200 then if (Player) then setElementHealth ( source,200 ) end end end ) مازبط ي الغالي Link to comment
Mr.CoR Posted July 1, 2016 Share Posted July 1, 2016 local table = { } addEvent("Cvehicle",true) addEventHandler("Cvehicle",root, function () if isElement( table[ source ]) then destroyElement( table[ source ]) end local x,y,z = getElementPosition( source ) table[ source ] = createVehicle ( carid, x, y, z) end ) addEvent("wrepplayre",true) addEventHandler("wrepplayre",root, function() local Veh = getPedOccupiedVehicle ( source ) if Veh then if not isElement( Veh) then local x, y, z = getElementPosition( Veh) setElementPosition(source, x, y, z) warpPlayerIntoVehicle(source, Veh) end end) addEvent("werpvehicle",true) addEventHandler("werpvehicle",root, function() local Veh = getPedOccupiedVehicle ( source ) if Veh then if not isElement(Veh ) then local x, y, z = getElementPosition(source) setElementPosition(Veh x, y, z) warpPlayerIntoVehicle(source,Veh) end end ) addEvent("desvehicle",true) addEventHandler("desvehicle",root, function () local Veh = getPedOccupiedVehicle ( source ) if Veh then destroyElement ( Veh ) end end ) addEvent("armor",true) addEventHandler("armor",root, function () Player = getPlayerFromName ( al ) if getPedArmor(source) ~= 100 then if (Player) then setPedArmor( source, 100 ) end end end ) addEvent("armor",true) addEventHandler("armor",root, function () Player = getPlayerFromName ( All ) if setElementHealth (source) ~= 200 then if (Player) then setElementHealth ( source,200 ) end end end ) انت اي شي مو معرف معك تصنع له جدول وتكتب Source ??? -- العموم يا صاحب الموضوع اعتقد المشكله من الترايقرات عندك حاط داتا على اي دي السيارة ومانت راسل شي الداتا بترايقر صنع السيارة + عطنا الاخطاء الي تجيك خلنا نشوف وين المشكلة بالضبط Link to comment
Wleed1998 Posted July 1, 2016 Author Share Posted July 1, 2016 local table = { } addEvent("Cvehicle",true) addEventHandler("Cvehicle",root, function () if isElement( table[ source ]) then destroyElement( table[ source ]) end local x,y,z = getElementPosition( source ) table[ source ] = createVehicle ( carid, x, y, z) end ) addEvent("wrepplayre",true) addEventHandler("wrepplayre",root, function() local Veh = getPedOccupiedVehicle ( source ) if Veh then if not isElement( Veh) then local x, y, z = getElementPosition( Veh) setElementPosition(source, x, y, z) warpPlayerIntoVehicle(source, Veh) end end) addEvent("werpvehicle",true) addEventHandler("werpvehicle",root, function() local Veh = getPedOccupiedVehicle ( source ) if Veh then if not isElement(Veh ) then local x, y, z = getElementPosition(source) setElementPosition(Veh x, y, z) warpPlayerIntoVehicle(source,Veh) end end ) addEvent("desvehicle",true) addEventHandler("desvehicle",root, function () local Veh = getPedOccupiedVehicle ( source ) if Veh then destroyElement ( Veh ) end end ) addEvent("armor",true) addEventHandler("armor",root, function () Player = getPlayerFromName ( al ) if getPedArmor(source) ~= 100 then if (Player) then setPedArmor( source, 100 ) end end end ) addEvent("armor",true) addEventHandler("armor",root, function () Player = getPlayerFromName ( All ) if setElementHealth (source) ~= 200 then if (Player) then setElementHealth ( source,200 ) end end end ) انت اي شي مو معرف معك تصنع له جدول وتكتب Source ??? -- العموم يا صاحب الموضوع اعتقد المشكله من الترايقرات عندك حاط داتا على اي دي السيارة ومانت راسل شي الداتا بترايقر صنع السيارة + عطنا الاخطاء الي تجيك خلنا نشوف وين المشكلة بالضبط كل الازرار لم اظغها ماتزبط ويطل ان التقريت مو صحيح Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now