Jump to content

مساعده


Recommended Posts

addEventHandler("onClientGUIClick",أسم الزر, 
    function() 
        stopResource(getResourceFromName("أسم الريسورس")) 
    end,false 
) 

+

يبيله صلاحيات من الاسل

حط في قروب الادمن

resource.اسم سكربتك

stopResource - سيرفر فقط -_-

Client Side

Button = guiCreateButton ( 0.4, 0.85, 0.20, 0.15, 'Stop', true ) 
  
addEventHandler( 'onClientGUIClick', Button, 
    function( ) 
        triggerServerEvent( 'StopResource', getRootElement( ) ) 
    end, false 
) 

Server Side

addEvent( 'StopResource', true )       
addEventHandler( 'StopResource',  getRootElement( ),  
    function( ) 
        local resource = getResourceFromName( 'اسم المود' ) 
        if getResourceState( resource ) == 'running' then 
            stopResource( resource ) 
        end 
    end 
) 

P.S: لازم تحط المود في قروب الادمن

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...