Albinix Posted May 12, 2010 Posted May 12, 2010 can u use this to drive upsidedown? https://wiki.multitheftauto.com/wiki/SetVehicleGravityPoint
B!ERPuNK Posted May 12, 2010 Posted May 12, 2010 can u use this to drive upsidedown? https://wiki.multitheftauto.com/wiki/SetVehicleGravityPoint Just try it. I'm also new to scripting, and the best way to learn is to try all kinds of things for yourself. And offcourse, when you don't get it after you've tried, you can ask people for help, but it's better to just try it at first.
Xierra Posted May 12, 2010 Posted May 12, 2010 Yes I agree to his point. But if you don't know how to do it, you can see Dragon's Magnetwheels script.
Albinix Posted May 13, 2010 Author Posted May 13, 2010 I have read and I tried this. but i don't get it to work local myMarker = createMarker ( 2502.6672363281, -1679.3017578125, 13.021269798279, "corona", 3, 255, 0, 0, 255 ) function MarkerHit( thePed ) local vehicle = getPedOccupiedVehicle ( theped ) setVehicleGravityPoint( vehicle, 0, 100, 0, 5 ) end addEventHandler( "onMarkerHit", myMarker, MarkerHit )
Albinix Posted May 13, 2010 Author Posted May 13, 2010 new code but don't work either local myMarker2 = createMarker ( 2502.6672363281, -1659.3017578125, 13.021269798279, "corona", 3, 255, 140, 0, 255 ) function MarkerHit2 ( player ) local veh = getPedOccupiedVehicle(player) if (veh) then setVehicleGravityPoint( veh, 0, 0, 100, 5 ) end end addEventHandler( "onMarkerHit", myMarker2, MarkerHit2 )
Dark Dragon Posted May 13, 2010 Posted May 13, 2010 you need to understand the difference between server and client side scripts, you are using a server event with client functions. What you need is onClientMarkerHit Also when using useful functions in your script you need to put the useful functions code somewhere so your script can access it.
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