Jump to content

[HELP] Hey, how to do this?


y453bh

Recommended Posts

Hello,

I need this vehicle jump script with a timer,  for not abusing when I'm in the ground.

But I also want this timer anulated when I'm on a wall or building rotated like this (90 degrees), by this way I can press many times the key for reaching a high altitude for shooting (it should not let me jump anymore in the air, until I fall). Hope you can help me.

Example:

wallrideSCREEN3.jpg

Script:

function initBind()
    bindKey("lshift", "down", jumpKey)
end
addEventHandler("onClientResourceStart", resourceRoot, initBind)

function jumpKey()
    if not isPedInVehicle(localPlayer) then return end

    local vehicle = getPedOccupiedVehicle(localPlayer)
    if vehicle and getVehicleController(vehicle) == localPlayer then
        local vehType = getVehicleType(vehicle)
        if vehType == "Plane" or vehType == "Helicopter" then return end
        local sx, sy, sz = getElementVelocity(vehicle)
        setElementVelocity(vehicle, sx, sy, sz + 0.33)
    end
end

Edited by y453bh
Link to comment
  • Moderators
5 hours ago, y453bh said:

I dont use that, thanks

https://forum.multitheftauto.com/topic/123569-hi-help-me-with-this-script-please/

As you said in your previous scripting request topic:

On 09/04/2020 at 15:01, y453bh said:

I appreciate ur help but I dont know how to script.. 

help!

You are not interesting in learning it, else you would have asked different questions.

And yet I see you here again making the same scripting request, including unnecessary bumping.

 

LOCKED

Edited by IIYAMA
Link to comment
  • IIYAMA locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...