Jump to content

تعديل كود


Recommended Posts

لا تعليق

واضح من العنوان

GUIEditor_Window = {} 
  
GUIEditor_Window[1] = guiCreateWindow(411,177,421,234,"More . . .",false) 
guiSetVisible(GUIEditor_Window[1], false) 
base = guiCreateButton(0.0214,0.0983,0.3135,0.4188,"To Base",true,GUIEditor_Window[1]) 
guiSetFont(base,"default-bold-small") 
armor = guiCreateButton(0.342,0.0983,0.3135,0.4188,"Armor",true,GUIEditor_Window[1]) 
guiSetFont(armor,"default-bold-small") 
heal = guiCreateButton(0.6603,0.0983,0.3135,0.4188,"Health",true,GUIEditor_Window[1]) 
guiSetFont(heal,"default-bold-small") 
staff = guiCreateButton(0.0238,0.5299,0.3135,0.4188,"Go Staff Team",true,GUIEditor_Window[1]) 
guiSetFont(staff,"default-bold-small") 
jail = guiCreateButton(0.3444,0.5342,0.3135,0.4017,"Jail Panel",true,GUIEditor_Window[1]) 
guiSetFont(jail,"default-bold-small") 
  
    if guiGetVisible ( GUIEditor_Window[1] ) then 
        guiSetVisible ( GUIEditor_Window[1], false ) 
        showCursor ( false ) 
    else 
        guiSetVisible ( GUIEditor_Window[1], true ) 
        showCursor ( true ) 
    end 
end 
bindKey("F3", "down", showUserPanel) 
  
addEventHandler("onClientGUIClick", root, 
function() 
     if source == base then 
    setElementPosition ( getLocalPlayer(), -1755.81, 955.94, 24.74 ) 
     end 
end) 
Link to comment
-- Client Side 
GUIEditor_Window = {} 
  
GUIEditor_Window[1] = guiCreateWindow(411,177,421,234,"More . . .",false) 
guiSetVisible(GUIEditor_Window[1], false) 
base = guiCreateButton(0.0214,0.0983,0.3135,0.4188,"To Base",true,GUIEditor_Window[1]) 
guiSetFont(base,"default-bold-small") 
armor = guiCreateButton(0.342,0.0983,0.3135,0.4188,"Armor",true,GUIEditor_Window[1]) 
guiSetFont(armor,"default-bold-small") 
heal = guiCreateButton(0.6603,0.0983,0.3135,0.4188,"Health",true,GUIEditor_Window[1]) 
guiSetFont(heal,"default-bold-small") 
staff = guiCreateButton(0.0238,0.5299,0.3135,0.4188,"Go Staff Team",true,GUIEditor_Window[1]) 
guiSetFont(staff,"default-bold-small") 
jail = guiCreateButton(0.3444,0.5342,0.3135,0.4017,"Jail Panel",true,GUIEditor_Window[1]) 
guiSetFont(jail,"default-bold-small") 
  
guiSetVisible(GUIEditor_Window[1],false) 
bindKey ( "F3" , "down" , function() 
  
if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor (false ) 
  
 elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then 
 guiSetVisible ( GUIEditor_Window[1] ,true ) 
 showCursor (false ) 
  end 
 end 
 ) 
  
addEventHandler("onClientGUIClick", root, 
 function () 
    if source == base then 
       setElementPosition(localPlayer,-1755.81,955.94,24.74)  
end 
 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...