Jump to content

ارجو المساعده


Recommended Posts

bindKey  
setElementData  
getElementData 
outputChatBox 

ايش المشكله هنا

bindKey( 'f7', 'down', 
    function() 
    removeElementData(localPlayer,'Occupation') 
                        exports.TopBarChat:sendClientMessage( 'xxxxxx', 255, 0, 0 ) 
 else 
                        exports.TopBarChat:sendClientMessage( 'xxxxxxx ', 255, 0, 0 ) 
setElementData (localPlayer,'Occupation','Base')                         
 end 
) 

Link to comment
bindKey  
setElementData  
getElementData 
outputChatBox 

ايش المشكله هنا

bindKey( 'f7', 'down', 
    function() 
    removeElementData(localPlayer,'Occupation') 
                        exports.TopBarChat:sendClientMessage( 'xxxxxx', 255, 0, 0 ) 
 else 
                        exports.TopBarChat:sendClientMessage( 'xxxxxxx ', 255, 0, 0 ) 
setElementData (localPlayer,'Occupation','Base')                         
 end 
) 

المشكلة انك خابص كلنت مع سيرفر

وelse

بدون تحقق

Link to comment
bindKey  
setElementData  
getElementData 
outputChatBox 

ايش المشكله هنا

bindKey( 'f7', 'down', 
    function() 
    removeElementData(localPlayer,'Occupation') 
                        exports.TopBarChat:sendClientMessage( 'xxxxxx', 255, 0, 0 ) 
 else 
                        exports.TopBarChat:sendClientMessage( 'xxxxxxx ', 255, 0, 0 ) 
setElementData (localPlayer,'Occupation','Base')                         
 end 
) 

المشكلة انك خابص كلنت مع سيرفر

وelse

بدون تحقق

وين لكلنت و وين السيرفر

Link to comment
removeElementData

Client Side Functions Color

Server Side Functions Color

Client Side Or Server Side Functions Color

ما زبط

ذا كلنت :

bindKey( 'f7', 'down', 
    function() 
    if ( getElementData( localPlayer, 'Occupation' ) == "Base" )then 
triggerServerEvent( "data", localPlayer ) 
                        exports.TopBarChat:sendClientMessage( 'xxxxxx', 255, 0, 0 ) 
 else 
                        exports.TopBarChat:sendClientMessage( 'xxxxxxx ', 0, 255, 0 ) 
triggerServerEvent( "data2", localPlayer ) 
end                  
 end 
) 

ذا سيرفر:

addEvent( "data", true ) 
addEventHandler( "data", root, function(  ) 
     removeElementData(source,'Occupation') 
end ) 
  
addEvent( "data2", true ) 
addEventHandler( "data2", root, function(  ) 
setElementData (source,'Occupation','Base') 
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...