EdeN Posted December 11, 2012 Share Posted December 11, 2012 (edited) GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(438,145,502,430,"",false) GUIEditor_Button[1] = guiCreateButton(322,385,5,5,"",false,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(10,23,483,398,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("xCar#1",GUIEditor_TabPanel[1]) GUIEditor_Button[2] = guiCreateButton(24,131,120,34,"350000",false,GUIEditor_Tab[1]) GUIEditor_Button[3] = guiCreateButton(27,304,120,34,"10000",false,GUIEditor_Tab[1]) GUIEditor_Grid[1] = guiCreateGridList(181,17,295,345,false,GUIEditor_Tab[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"s",0.2) guiGridListAddColumn(GUIEditor_Grid[1],"معلومات عن السيارتين",0.2) GUIEditor_Memo[1] = guiCreateMemo(190,47,261,312,"========================\n\nNameCar: Camry\n\nManeyCar: 350000 SR\n\n\n===========================\n\nNameCar: ddsn\n\nManeyCar: 10000 SR\n\n\n===========================\n\nBy: x7MoDy",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("xCar#2",GUIEditor_TabPanel[1]) addEventHandler("onClientGUIClick", root, function( ) addEventHandler("onClientGUIClick", root, function( ) addCommandHandler = createVehicle(localPlayer) if ( source == GUIEditor_Button[1] ) then theVehicle = createVehicle ( 411, x, y + 3, z ) elseif ( source == GUIEditor_Button[2] ) then theVehicle = createVehicle ( 411, x, y + 3, z ) elseif ( source == GUIEditor_Button[3] ) then theVehicle = createVehicle ( 411, x, y + 3, z ) end end) Edited December 11, 2012 by Guest Link to comment
Tete omar Posted December 11, 2012 Share Posted December 11, 2012 GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(438,145,502,430,"",false) GUIEditor_Button[1] = guiCreateButton(322,385,5,5,"",false,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(10,23,483,398,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("xCar#1",GUIEditor_TabPanel[1]) GUIEditor_Button[2] = guiCreateButton(24,131,120,34,"350000",false,GUIEditor_Tab[1]) GUIEditor_Button[3] = guiCreateButton(27,304,120,34,"10000",false,GUIEditor_Tab[1]) GUIEditor_Grid[1] = guiCreateGridList(181,17,295,345,false,GUIEditor_Tab[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"s",0.2) guiGridListAddColumn(GUIEditor_Grid[1],"معلومات عن السيارتين",0.2) GUIEditor_Memo[1] = guiCreateMemo(190,47,261,312,"========================\n\nNameCar: Camry\n\nManeyCar: 350000 SR\n\n\n===========================\n\nNameCar: ddsn\n\nManeyCar: 10000 SR\n\n\n===========================\n\nBy: x7MoDy",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("xCar#2",GUIEditor_TabPanel[1]) local theVehicle = {} addEventHandler("onClientGUIClick", guiRoot, function() if ( source == GUIEditor_Button[1] ) then if ( isElement(theVehicle[ localPlayer ]) )then destroyElement(theVehicle[ localPlayer ]) end local x, y, z = getElementPosition( localPlayer ) theVehicle[ localPlayer ] = createVehicle( 411, x, y + 3, z ) elseif( source == GUIEditor_Button[2] ) then if ( isElement(theVehicle[ localPlayer ]) )then destroyElement(theVehicle[ localPlayer ]) end local x, y, z = getElementPosition( localPlayer ) theVehicle[ localPlayer ] = createVehicle( 411, x, y + 3, z ) elseif( source == GUIEditor_Button[3] ) then if ( isElement(theVehicle[ localPlayer ]) )then destroyElement(theVehicle[ localPlayer ]) end local x, y, z = getElementPosition( localPlayer ) theVehicle[ localPlayer ] = createVehicle( 411, x, y + 3, z ) end end ) Link to comment
EdeN Posted December 11, 2012 Author Share Posted December 11, 2012 GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(438,145,502,430,"",false) GUIEditor_Button[1] = guiCreateButton(322,385,5,5,"",false,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(10,23,483,398,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("xCar#1",GUIEditor_TabPanel[1]) GUIEditor_Button[2] = guiCreateButton(24,131,120,34,"350000",false,GUIEditor_Tab[1]) GUIEditor_Button[3] = guiCreateButton(27,304,120,34,"10000",false,GUIEditor_Tab[1]) GUIEditor_Grid[1] = guiCreateGridList(181,17,295,345,false,GUIEditor_Tab[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"s",0.2) guiGridListAddColumn(GUIEditor_Grid[1],"معلومات عن السيارتين",0.2) GUIEditor_Memo[1] = guiCreateMemo(190,47,261,312,"========================\n\nNameCar: Camry\n\nManeyCar: 350000 SR\n\n\n===========================\n\nNameCar: ddsn\n\nManeyCar: 10000 SR\n\n\n===========================\n\nBy: x7MoDy",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("xCar#2",GUIEditor_TabPanel[1]) local theVehicle = {} addEventHandler("onClientGUIClick", guiRoot, function() if ( source == GUIEditor_Button[1] ) then if ( isElement(theVehicle[ localPlayer ]) )then destroyElement(theVehicle[ localPlayer ]) end local x, y, z = getElementPosition( localPlayer ) theVehicle[ localPlayer ] = createVehicle( 411, x, y + 3, z ) elseif( source == GUIEditor_Button[2] ) then if ( isElement(theVehicle[ localPlayer ]) )then destroyElement(theVehicle[ localPlayer ]) end local x, y, z = getElementPosition( localPlayer ) theVehicle[ localPlayer ] = createVehicle( 411, x, y + 3, z ) elseif( source == GUIEditor_Button[3] ) then if ( isElement(theVehicle[ localPlayer ]) )then destroyElement(theVehicle[ localPlayer ]) end local x, y, z = getElementPosition( localPlayer ) theVehicle[ localPlayer ] = createVehicle( 411, x, y + 3, z ) end end ) مشكوررر Link to comment
EdeN Posted December 11, 2012 Author Share Posted December 11, 2012 اسف على الازعاج بس طلب كود اول مايشتري السياره يركبه مباشرتاً Link to comment
Tete omar Posted December 11, 2012 Share Posted December 11, 2012 كلنت addEventHandler("onClientGUIClick", guiRoot, function() if ( source == GUIEditor_Button[1] ) then triggerServerEvent("createVeh",localPlayer) elseif( source == GUIEditor_Button[2] ) then triggerServerEvent("createVeh",localPlayer) elseif( source == GUIEditor_Button[3] ) then triggerServerEvent("createVeh",localPlayer) end end ) سيرفر local theVehicle = {} addEvent("createVeh",true) addEventHandler("createVeh",root, function() if ( isElement(theVehicle[ client ]) ) then destroyElement(theVehicle[ client ]) end local x, y, z = getElementPosition( client ) theVehicle[ client ] = createVehicle( 411, x, y , z ) warpPedIntoVehicle(client, theVehicle[ client ]) end ) بس كان عندي ملاحظة : انت متآكد ان هالسكربت حق شراء سيارات ؟ ثانياً انا استغربت انك تسوي السيارات في الكلنت :\ السيارات في الكلنت ما تصلح تنركب , فـ كان الافضل تسوي ترايقر للسيرفر Link to comment
EdeN Posted December 11, 2012 Author Share Posted December 11, 2012 كلنت addEventHandler("onClientGUIClick", guiRoot, function() if ( source == GUIEditor_Button[1] ) then triggerServerEvent("createVeh",localPlayer) elseif( source == GUIEditor_Button[2] ) then triggerServerEvent("createVeh",localPlayer) elseif( source == GUIEditor_Button[3] ) then triggerServerEvent("createVeh",localPlayer) end end ) سيرفر local theVehicle = {} addEvent("createVeh",true) addEventHandler("createVeh",root, function() if ( isElement(theVehicle[ client ]) ) then destroyElement(theVehicle[ client ]) end local x, y, z = getElementPosition( client ) theVehicle[ client ] = createVehicle( 411, x, y , z ) warpPedIntoVehicle(client, theVehicle[ client ]) end ) بس كان عندي ملاحظة : انت متآكد ان هالسكربت حق شراء سيارات ؟ معك حق بس انا اول اركب كودات الاساسيه بعدين راح احط الكود الثانين Link to comment
EdeN Posted December 11, 2012 Author Share Posted December 11, 2012 كلنت addEventHandler("onClientGUIClick", guiRoot, function() if ( source == GUIEditor_Button[1] ) then triggerServerEvent("createVeh",localPlayer) elseif( source == GUIEditor_Button[2] ) then triggerServerEvent("createVeh",localPlayer) elseif( source == GUIEditor_Button[3] ) then triggerServerEvent("createVeh",localPlayer) end end ) سيرفر local theVehicle = {} addEvent("createVeh",true) addEventHandler("createVeh",root, function() if ( isElement(theVehicle[ client ]) ) then destroyElement(theVehicle[ client ]) end local x, y, z = getElementPosition( client ) theVehicle[ client ] = createVehicle( 411, x, y , z ) warpPedIntoVehicle(client, theVehicle[ client ]) end ) بس كان عندي ملاحظة : انت متآكد ان هالسكربت حق شراء سيارات ؟ ثانياً انا استغربت انك تسوي السيارات في الكلنت :\ السيارات في الكلنت ما تصلح تنركب , فـ كان الافضل تسوي ترايقر للسيرفر مشكور على الكود و النصائح 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