y453bh Posted April 13, 2020 Share Posted April 13, 2020 (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: 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 April 13, 2020 by y453bh Link to comment
Fonz Posted April 13, 2020 Share Posted April 13, 2020 If you're in such a rush I would suggest getting live help on MTA Discord at the scripting channels. Otherwise wait for someone to respond. Link to comment
y453bh Posted April 13, 2020 Author Share Posted April 13, 2020 (edited) Can somebody help me please? Edited April 13, 2020 by y453bh Link to comment
Fonz Posted April 13, 2020 Share Posted April 13, 2020 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. Link to comment
y453bh Posted April 13, 2020 Author Share Posted April 13, 2020 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 Link to comment
Fonz Posted April 13, 2020 Share Posted April 13, 2020 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. Link to comment
Moderators IIYAMA Posted April 13, 2020 Moderators Share Posted April 13, 2020 (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 April 13, 2020 by IIYAMA Link to comment
Recommended Posts