Jump to content

[HELP] Hey, how to do this?


y453bh

Recommended Posts

Posted (edited)

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
Posted
30 minutes ago, y453bh said:

Can somebody help me please? 

Cant you read what I said? There's no point on repeatively asking for someone to help, either wait or ask for help on Discord.

Posted
4 minutes ago, Combine Harvester said:

Cant you read what I said? There's no point on repeatively asking for someone to help, either wait or ask for help on Discord.

I dont use that, thanks

Posted
12 minutes ago, y453bh said:

I dont use that, thanks

Then just be patient, wait until someone answers, spamming your own topic with messages won't make anyone come faster to help you, trust me on that.

  • Moderators
Posted (edited)
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
  • 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...