Jump to content

كود ضغط


Recommended Posts

Event :

onClientGUIClick

Function's :

setElementPosition 
isPedInVehicle 

Player :

getLocalPlayer

اظن لازم له ترايقر عشان ينتقل عند الكل

setElementPosition لأني جربت

اشوف نفسي انتقلت بس خويي يشوفني بمكاني

  
  
addEventHandler("onClientGUIClick", GUIEditor.button[4], 
    function (  ) 
            local vehicle =  getPedOccupiedVehicle ( localPlayer ) 
                if vehicle then 
                    setElementPosition ( vehicle,1363.7724609375, -1264.3046875, 13.546875 ) 
                    guiSetVisible ( GUIEditor.window[1],false ) 
                    showCursor ( false ) 
      else 
              setElementPosition ( localPlayer,1363.7724609375, -1264.3046875, 13.546875 )  
              guiSetVisible ( GUIEditor.window[1],false ) 
              showCursor ( false ) 
            end 
    end,false 
) 

مجربه و شغال زي الحلاوة :arrowleft:

صاحبي يشوفني و انا اشوفه :lol:

Link to comment
addEventHandler('onClientGUIClick',Button, 
    function (      ) 
        if isPedInVehicle ( 
            localPlayer ) then 
        return false 
    end 
        setElementPosition ( localPlayer,x,y,z ) 
    end 
,false 
) 

اذا بـ سيارهـ ماينقلة ..

Link to comment
addEventHandler("onClientGUIClick", root, 
function () 
     if source == GUIEditor.button[1] then 
          setElementPosition(localPlayer,1779.612,824.2493,10.664346) 
     elseif source == GUIEditor.button[2] then 
          setElementPosition(localPlayer,2075.0258,860.060,6.734) 
     elseif source == GUIEditor.button[3] then 
          setElementPosition(localPlayer,434.2817,2510.0205,16.484) 
     elseif source == GUIEditor.button[4] then 
          setElementPosition(localPlayer,814.3580,-1390.1628,13.622348) 
     elseif source == GUIEditor.button[5] then 
          setElementPosition(localPlayer,-2740.532,-2380.929,17.3249) 
     elseif source == GUIEditor.button[6] then 
          setElementPosition(localPlayer,2913.3815197969,2323.1267089844,10.820125) 
     end 
end)  
  

لو تبي زر واحد بس

addEventHandler("onClientGUIClick", root, 
function () 
     if source == GUIEditor.button[1] then 
          setElementPosition(localPlayer,1779.612,824.2493,10.664346) 
     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...