Jump to content

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


wsx5069

Recommended Posts

Posted (edited)

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
  • Discord Moderators
Posted

Thread moved to the Scripting forum. For any further posting for scripting help, please use this forum.

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