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