KasaNoVa Posted August 9, 2014 Share Posted August 9, 2014 كود اضغط علي زر يعمل حركة [Anim] + و عايز كود في زر لو دوست عليه يديني فلوس بس مينفعش ادوس تاني غير بعد 10 دقائق Link to comment
TAPL Posted August 9, 2014 Share Posted August 9, 2014 Event: 'onClientGUIClick' guiCreateButton triggerServerEvent addEventHandler addEvent setPedAnimation givePlayerMoney setTimer isTimer Link to comment
KasaNoVa Posted August 9, 2014 Author Share Posted August 9, 2014 Event: 'onClientGUIClick' guiCreateButton triggerServerEvent addEventHandler addEvent setPedAnimation givePlayerMoney setTimer isTimer ممكن تعملهملي كود فاهمني معلش هتعبك Link to comment
KasaNoVa Posted August 9, 2014 Author Share Posted August 9, 2014 Event: 'onClientGUIClick' guiCreateButton triggerServerEvent addEventHandler addEvent setPedAnimation givePlayerMoney setTimer isTimer يعني كدا مثلاً setPedAnimation ( botton, "DANCING", "dnce_m_b") Link to comment
TAPL Posted August 9, 2014 Share Posted August 9, 2014 Event: 'onClientGUIClick' guiCreateButton triggerServerEvent addEventHandler addEvent setPedAnimation givePlayerMoney setTimer isTimer ممكن تعملهملي كود فاهمني معلش هتعبك Link to comment
KasaNoVa Posted August 9, 2014 Author Share Posted August 9, 2014 Event: 'onClientGUIClick' guiCreateButton triggerServerEvent addEventHandler addEvent setPedAnimation givePlayerMoney setTimer isTimer طيب انا هعملو و تقولي صح ولا لا givePlayerMoney ( botton, 1000 ) end, 5000, 1 ) Link to comment
Max+ Posted August 9, 2014 Share Posted August 9, 2014 بساعدك في الكود الاول ^ --- كلينت start = guiCreateButton( 0.7, 0.1, 0.2, 0.1, "Dance!", true ) stop = guiCreateButton( 1.7, 1.1, 0.3, 0.2, "Stop!", true ) addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == start ) then setPedAnimation ( localPlayer, "DANCING", "dnce_m_b") elseif ( source == stop ) then setTimer (function () setPedAnimation (localPlayer, false) end, 1000, 1) end end ) Link to comment
oN20 Posted August 9, 2014 Share Posted August 9, 2014 الكود الثاني : GUIEditor = { button = {}, window = {}, label = {} } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) GUIEditor.window[1] = guiCreateWindow(230, 271, 255, 196, "testing / by oN20", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible ( GUIEditor.window[1], false ) Medic = guiCreateButton(0.04, 0.10, 0.35, 0.17, "Button", true, GUIEditor.window[1]) end ) bindKey ( "F5", "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) function close ( theButton ) guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) guiSetEnabled ( theButton, false ) setTimer ( guiSetEnabled, 5000, 1, theButton, true ) end Link to comment
KasaNoVa Posted August 10, 2014 Author Share Posted August 10, 2014 الكود الثاني : GUIEditor = { button = {}, window = {}, label = {} } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) GUIEditor.window[1] = guiCreateWindow(230, 271, 255, 196, "testing / by oN20", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible ( GUIEditor.window[1], false ) Medic = guiCreateButton(0.04, 0.10, 0.35, 0.17, "Button", true, GUIEditor.window[1]) end ) bindKey ( "F5", "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) function close ( theButton ) guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) guiSetEnabled ( theButton, false ) setTimer ( guiSetEnabled, 5000, 1, theButton, true ) 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