SaedAmer Posted June 16, 2017 Share Posted June 16, 2017 السلام عليكم انا بعمل مود انتقال عاوز اخلي كل حاجة مستقلة يعني المهمات لوحدها و الاماكن العامة لوحدها وكده Link to comment
+Source|> Posted June 16, 2017 Share Posted June 16, 2017 10 minutes ago, SaedAmer said: السلام عليكم انا بعمل مود انتقال عاوز اخلي كل حاجة مستقلة يعني المهمات لوحدها و الاماكن العامة لوحدها وكده guiGridListAddRow Link to comment
^iiEcoo'x_) Posted June 16, 2017 Share Posted June 16, 2017 'onClientGUIDoubleClick' isElement destroyElement guiCreateGridList Link to comment
Abdul KariM Posted June 16, 2017 Share Posted June 16, 2017 'onClientGUIDoubleClick' guiGridListClear guiGridListAddRow guiGridListSetItemText Link to comment
SaedAmer Posted June 16, 2017 Author Share Posted June 16, 2017 (edited) addEventHandler("onClientGUIDoubleClick",root, function () guiCreateGridList (grid1) guiGridListAddRow (grid2) local sel = guiGridListGetSelectedItem(grid2) if source == move then if sel ~= -1 then local x,y,z = unpack(guiGridListGetItemData(grid,sel,1)) setElementPosition(localPlayer,x,y,z) end end ) Edited June 16, 2017 by SaedAmer Link to comment
^iiEcoo'x_) Posted June 16, 2017 Share Posted June 16, 2017 addEventHandler ( 'onClientGUIDoubleClick' , root , function ( ) if ( source == yourgrid ) then local aSelect = guiGridListGetItemText ( yourgrid , guiGridListGetSelectedItem ( yourgrid ), 1 ) if ( aSelect == 'المهمات') then guiGridListClear ( yourgrid ) guiGridListSetItemText ( yourgrid , gridListAddRow ( yourgrid ) , 1 , 'مهمة الديربي' , false , false ) end end 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