Jump to content

RESOURCE "VEHJUMP"


Mike269

Recommended Posts

Posted

Hello im 13 years old boy I have my own server i searching for vehjump like 2 months please i will be very glad if will someone make it add me on skype simonos2000 or please upload to resource on www.mta.com and send me link at this post THANKS VERY MUCH! :D

Posted

I think he wants an script which let's you make your vehicle jump when press a key.

@Shadex: Is not a hard script, but we won't do it for you, you must learn to do it.

Posted

well he's my friend from game so i'll help him

function jump()       
    local vehicle = getPedOccupiedVehicle(getLocalPlayer()) 
    if (isVehicleOnGround( vehicle ) == true) then           
        local sx,sy,sz = getElementVelocity ( vehicle ) 
        setElementVelocity( vehicle ,sx, sy, sz+0.35 ) 
    end 
end 
bindKey ( "lshift","down", jump) 

Posted

Hello i got it! I have this script but.. when i pres lshift i can jump only one time then i must wait vehicle come on floor's can someone tell me how i can make the vehicle will can jump in the air and don't need waiting on floors?

Posted
why you posted the same reply twice?

https://community.multitheftauto.com/ind ... ls&id=7406

It happens sometimes if you have the same thread open in different tabs or whatever, I've done the same mistake myself a few times.

@OP: This is what checks if you're on the ground, and if you are you can jump - otherwise not.

if (isVehicleOnGround( vehicle ) == true) then           
    local sx,sy,sz = getElementVelocity ( vehicle ) 
    setElementVelocity( vehicle ,sx, sy, sz+0.35 ) 
end 

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