Jump to content

تعديل


Recommended Posts

السلام عليكم

هذا كود يطلع صوت الشيلة في مكان محدد

[lua]function onResourceStart() 
    local sound = playSound3D("aa.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795, true)  
        setSoundMaxDistance(sound, 25) 
        setSoundVolume(sound, 20.0) 
end 
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) 

[/lua]

ابغى اخليه تشتغل اذا ضغطت على الزر هذا

  
addEventHandler("onClientGUIClick",root, 
    function () 
        if ( source == M2 ) then 
             
            guiSetVisible(GUIEditor_Window[1],false) 
            showCursor(false) 
            guiSetInputEnabled(false) 
  
        end 
    end 
) 
  
   

ولحد يخاف من الذنوب لاني والله العظيم بحطها شيلات مو اغاني

Link to comment

addEventHandler( "onClientGUIClick", resourceRoot, function (   ) 
        if ( source == M2 ) then    
          if ( isElement( sound ) ) then destroyElement( sound ) end 
            local sound = playSound3D("aa.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795, true) 
            setSoundMaxDistance(sound, 25) 
            setSoundVolume(sound, 20.0) 
            guiSetVisible( GUIEditor_Window[1], false ) 
            showCursor( false ) 
            guiSetInputEnabled( false ) 
       end 
end ) 
Edited by Guest
Link to comment

-- Client Side # 
addEventHandler('onClientGUIClick',M2,function () 
    if isElement(sound) then destroyElement(sound) end 
        sound = playSound3D('aa.mp3', -1490.0997314453, 762.89318847656, 8.3803997039795, true) 
            setSoundMaxDistance(sound, 25) 
                setSoundVolume(sound, 20.0) 
                    guiSetVisible(GUIEditor_Window[1],false) 
                        showCursor(false) 
                            guiSetInputEnabled(false) 
    end,false 
) 
Edited by Guest
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...