Jump to content

x [ يغلق] x


Recommended Posts

السلام عليكم

الوحة تفتح بالسيرفر الوهمي

بس لما ارفعها علي استضافة ما تفتح ايه الخطأ ؟

كلنت

  function strong ( ) 
  
    showCursor (true) 
                guiSetVisible(Players, true) 
        guiSetVisible (wnd, true) 
  
    end 
    addEvent( "openGui", true ) 
    addEventHandler( "openGui",root,strong) 
      
    bindKey( "M", "down", 
    function () 
                   triggerServerEvent ( "check2", localPlayer ) 
  
showCursor( not isCursorShowing() ) 
  
     end)    

سيرفر

addEventHandler ( 'onElementClicked', root, function ( _,_, plr ) 
local msa = getPlayerName ( getElementData ( plr, 'lastUsed' ) ) 
  
local mhaster12 = getPlayerName (source)  
  
local acc = getPlayerAccount(plr) 
if isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("Police")) then 
    if getElementType ( source ) == 'vehicle' then 
    triggerClientEvent(plr,"openGui",plr) 
triggerClientEvent(plr,"openGui123",plr,msa) 
triggerClientEvent(plr,"openGui12345",plr,nmn) 
destroyElement (source) 
removeElementData (plr,"bugfix") 
  
elseif getElementType ( source ) == 'player' then 
    triggerClientEvent(plr,"openGui",plr) 
  
triggerClientEvent(plr,"openGui1234",plr,mhaster12) 
  
removeElementData (plr,"bugfix") 
        end 
        else  
        outputChatBox("you are not admin",plr,255,255,255) 
        end 
         
end) 

triggerServerEvent ( "check2", localPlayer ) 

مو مفعل في سيرفر

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