Mike269 Posted June 18, 2013 Share Posted June 18, 2013 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! Link to comment
PaiN^ Posted June 18, 2013 Share Posted June 18, 2013 What is "VEHJUMP" ? And i don't think any one would make a resource for free ! Link to comment
Castillo Posted June 18, 2013 Share Posted June 18, 2013 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. Link to comment
Mike269 Posted June 18, 2013 Author Share Posted June 18, 2013 ty but i really have no idea how to script Link to comment
Castillo Posted June 18, 2013 Share Posted June 18, 2013 Well, you better start to learn then. viewtopic.php?f=148&t=40809 Functions you would need: bindKey getPedOccupiedVehicle getElementVelocity setElementVelocity Link to comment
xTravax Posted June 18, 2013 Share Posted June 18, 2013 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) Link to comment
Mike269 Posted June 20, 2013 Author Share Posted June 20, 2013 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? Link to comment
iMr.3a[Z]eF Posted June 20, 2013 Share Posted June 20, 2013 why you posted the same reply twice? https://community.multitheftauto.com/ind ... ls&id=7406 Link to comment
Dealman Posted June 20, 2013 Share Posted June 20, 2013 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 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now