franku Posted April 12, 2015 Share Posted April 12, 2015 كيف ممكن اعمل كومبو بوكس ولم اختار ١٠٠$ واضغطً على كبسه يزيدو فلوسي و٢٠٠$، ٣٠٠$... السلام عليكم Link to comment
#DRAGON!FIRE Posted April 12, 2015 Share Posted April 12, 2015 guiCreateComboBox "onClientGUIClick" guiComboBoxGetSelected guiComboBoxGetItemText triggerServerEvent givePlayerMoney Link to comment
#DRAGON!FIRE Posted April 12, 2015 Share Posted April 12, 2015 local ComboBox = guiCreateComboBox ( ... ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == element ) then local Num_ = guiComboBoxGetItemText ( ComboBox, guiComboBoxGetSelected ( ComboBox ) ) if ( Num_ and tonumber ( Num_ ) ) then triggerServerEvent ( "Player:money", localPlayer, Num_ ) end end end ) addEvent ( "Player:money", true ) addEventHandler ( "Player:money", root, function ( Num_ ) givePlayerMoney ( source, tonumber ( Num_ ) ) 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