JustP Posted May 15, 2019 Share Posted May 15, 2019 addEventHandler('onClientGUIDoubleClick',root, function() if source == g12 then if guiGridListGetSelectedItem ( g12 ) then local Data = guiGridListGetItemData( g12, guiGridListGetSelectedItem ( g12 ), 1 ) setWeather(Data) guiSetVisible(w12, false) showCursor(false) else outputChatBox('يجب ان تختار الجو المُحدد') end end end ) معي ذي الاكواد لكن مشكلتي يوم اضغط عالقريد لست حتى لو مامختار ايتم تختفي كيف اخليها الا لو مختار ايتم؟ سوي تحقق بس نفس الشيء Link to comment
Abdul KariM Posted May 15, 2019 Share Posted May 15, 2019 local aSelect_ = guiGridListGetSelectedItem ( yourGrid ) if ( aSelect_ == -1 ) then return end 1 Link to comment
JustP Posted May 15, 2019 Author Share Posted May 15, 2019 1 minute ago, Abdul KariM said: local aSelect_ = guiGridListGetSelectedItem ( yourGrid ) if ( aSelect_ == -1 ) then return end addEventHandler('onClientGUIDoubleClick',root, function() if source == g12 then local aSelect_ = guiGridListGetSelectedItem ( g12 ) if ( aSelect_ == -1 ) then local Data = guiGridListGetItemData( g12, guiGridListGetSelectedItem ( g12 ), 1 ) setWeather(Data) guiSetVisible(w12, false) showCursor(false) else outputChatBox('يجب ان تختار الجو المُحدد') return end end end ) نفس الشيء.. Link to comment
Abdul KariM Posted May 15, 2019 Share Posted May 15, 2019 addEventHandler('onClientGUIDoubleClick',root, function() if source == g12 then local aSelect_ = guiGridListGetSelectedItem ( g12 ) if ( aSelect_ == -1 ) then return outputChatBox('يجب ان تختار الجو المُحدد') end local Data = guiGridListGetItemData( g12, guiGridListGetSelectedItem ( g12 ), 1 ) setWeather(Data) guiSetVisible(w12, false) showCursor(false) end end ) 1 Link to comment
Jw8. Posted May 15, 2019 Share Posted May 15, 2019 2 minutes ago, Abdul KariM said: addEventHandler('onClientGUIDoubleClick',root, function() if source == g12 then local aSelect_ = guiGridListGetSelectedItem ( g12 ) if ( aSelect_ == -1 ) then return outputChatBox('يجب ان تختار الجو المُحدد') end local Data = guiGridListGetItemData( g12, guiGridListGetSelectedItem ( g12 ), 1 ) setWeather(Data) guiSetVisible(w12, false) showCursor(false) 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