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

What is "VEHJUMP" ?

And i don't think any one would make a resource for free !

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

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.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Well, you better start to learn then.

viewtopic.php?f=148&t=40809

Functions you would need:

bindKey 
getPedOccupiedVehicle 
getElementVelocity 
setElementVelocity 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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 

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

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