Adham Posted February 23, 2017 Share Posted February 23, 2017 سلام عليكم ورحمه الله وبركاته اليوم انا مسوي لما يحدد شي من القريد لست يجي له سهم فوق السياره الكود شغال تمام انا ابي لما يضعط ضعطتين مره اخري السهم يختفي وحاطط الاكواد صح مدري وش الخطأ م في دي بق client addEventHandler("onClientGUIDoubleClick",root, function() if source == GUIEditor.gridlist[2] then local text = guiGridListGetItemText ( GUIEditor.gridlist[2], guiGridListGetSelectedItem ( GUIEditor.gridlist[2] ), 2 ) if text == "Le3bA" then triggerServerEvent('Create',localPlayer) else triggerServerEvent('Delete',localPlayer) end end end ) server : Object = { } addEvent('Create', true) addEventHandler('Create',root,function ( ) local vehicle = getPedOccupiedVehicle ( source ) if vehicle then local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( source ) , getElementDimension( source) , getElementPosition( source ) Object[source] = createObject(1318,xPosition, yPosition + 10 , zPosition ) setElementInterior( Object[source] , Interior ) setElementDimension( Object[source] , Dimension ) attachElementToElement(Object[source],vehicle, 0, 0,1.5) end end) addEvent ( 'Delete', true ) addEventHandler('Delete',root, function ( ) if ( isElement( Object[source] ) ) then destroyElement( Object[source] ) end end ) Link to comment
!#NssoR_) Posted February 23, 2017 Share Posted February 23, 2017 حط نفس اكواد إزالة الاوبجكت , في اول الترايقر الخاص بإنشاء الاوبجكت Link to comment
Adham Posted February 23, 2017 Author Share Posted February 23, 2017 2 minutes ago, !#NssoR_) said: حط نفس اكواد إزالة الاوبجكت , في اول الترايقر الخاص بإنشاء الاوبجكت مش عاوزا تظبت اخ نصور ممكن تسوهالي بعد اذنك ^ ؟ Link to comment
^iiEcoo'x_) Posted February 23, 2017 Share Posted February 23, 2017 21 minutes ago, Deativated said: سلام عليكم ورحمه الله وبركاته اليوم انا مسوي لما يحدد شي من القريد لست يجي له سهم فوق السياره الكود شغال تمام انا ابي لما يضعط ضعطتين مره اخري السهم يختفي وحاطط الاكواد صح مدري وش الخطأ م في دي بق client addEventHandler("onClientGUIDoubleClick",root, function() if source == GUIEditor.gridlist[2] then local text = guiGridListGetItemText ( GUIEditor.gridlist[2], guiGridListGetSelectedItem ( GUIEditor.gridlist[2] ), 2 ) if text == "Le3bA" then triggerServerEvent('Create',localPlayer) else triggerServerEvent('Delete',localPlayer) end end end ) server : Object = { } addEvent('Create', true) addEventHandler('Create',root,function ( ) local vehicle = getPedOccupiedVehicle ( source ) if vehicle then local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( source ) , getElementDimension( source) , getElementPosition( source ) Object[source] = createObject(1318,xPosition, yPosition + 10 , zPosition ) setElementInterior( Object[source] , Interior ) setElementDimension( Object[source] , Dimension ) attachElementToElement(Object[source],vehicle, 0, 0,1.5) end end) addEvent ( 'Delete', true ) addEventHandler('Delete',root, function ( ) if ( isElement( Object[source] ) ) then destroyElement( Object[source] ) end end ) اصلا مو انت مسويه Link to comment
Adham Posted February 23, 2017 Author Share Posted February 23, 2017 (edited) كود السهم اوسكر معطيني اياه ^ والكلام هذا من رمضان الفأت ولا شي Edited February 23, 2017 by Deativated Link to comment
!#NssoR_) Posted February 23, 2017 Share Posted February 23, 2017 (edited) Object = { } addEvent('Create', true) addEventHandler('Create',root,function ( ) if ( isElement( Object[client] ) ) then destroyElement( Object[client] ) return end local vehicle = getPedOccupiedVehicle ( client ) if vehicle then local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( client ) , getElementDimension( client) , getElementPosition( client ) Object[client] = createObject(1318,xPosition, yPosition + 10 , zPosition ) setElementInterior( Object[client] , Interior ) setElementDimension( Object[client] , Dimension ) attachElementToElement(Object[client],vehicle, 0, 0,1.5) end end) addEvent ( 'Delete', true ) addEventHandler('Delete',root, function ( ) if ( isElement( Object[client] ) ) then destroyElement( Object[client] ) end end ) Edited February 23, 2017 by !#NssoR_) 1 Link to comment
!#NssoR_) Posted February 23, 2017 Share Posted February 23, 2017 ياليت توضحلي الفكرة مره اخري وبطريقة اكثر وضوح , يمكن انا مافهمتك . Link to comment
Adham Posted February 23, 2017 Author Share Posted February 23, 2017 انا ابي اسوي لما يحدد من القريد لست كلمه معينه الهوا Le3bA ويضعط علي كلمه Le3bA مرتين يجي له سهم ولما يضعط عليها مرتين اخري يختفي السهم Link to comment
Adham Posted February 23, 2017 Author Share Posted February 23, 2017 مشكور ولله م قصرت الله يوفقك ب حياتك تمت الافاده من قبل نصور 1 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