Jump to content

مطلوب كود ممكن تدخلو


Recommended Posts

بساعدك في الكود الاول ^

--- كلينت

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

الكود الثاني :

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
الكود الثاني :
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...