Jump to content

How do I set a button that jumps and a button cancels jumping


wsx5069

Recommended Posts

How do I set a button that jumps and a button cancels jumping

 

 

 

function pxl ()
 guiSetVisiblie (c1)    true 
 showCursor(true)
 end
  
 addEvenhandler ("onClientGUTClick " , root ,
 function ()
      if sourec == -dd-then
      guiSetVisiblie(ا1) ، fales
      showCursor(fales) 
      end
      end)          
    
        
        
        guiSetEnabled (1) (fales) 
        
        
        
        outputChatBox("py pxl",255,0,0,true)

key = "alt" -- 

player = localPlayer

bindKey(key,"down",    

    function pxl()

        if isPedInVehicle(player) then

            local veh = getPedOccupiedVehicle(player)

            if isPedOnGround(player) then

                local vx,vy,vz = getElementVelocity(veh)

                setElementVelocity(veh,vx,vy,vz + 0.5)

            end

        end

    end

)

addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), startclient)

function pxl ()
 guiSetVisiblie (0) end

Edited by wsx5069
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...