rpgforlife Posted June 21, 2013 Share Posted June 21, 2013 (edited) solved Edited May 23, 2014 by Guest Link to comment
Castillo Posted June 21, 2013 Share Posted June 21, 2013 The script is set as server side on meta.xml? Also, I read somewhere that you can't set aircraft handling, I could be wrong though. Link to comment
rpgforlife Posted June 21, 2013 Author Share Posted June 21, 2013 i have tried on a car, and it doesn't work too + its a server side yes Link to comment
rpgforlife Posted June 21, 2013 Author Share Posted June 21, 2013 "Faster and Faster" author="EHID" description="Let your cars go faster" version="1.0" type="script"> Link to comment
PaiN^ Posted June 21, 2013 Share Posted June 21, 2013 > name="Faster and Faster" author="EHID" description="Let your cars go faster" version="1.0" type="script" /> ="faster_s.lua" type="server" />> Link to comment
rpgforlife Posted June 21, 2013 Author Share Posted June 21, 2013 car -- Banshee -- (270km/h) function handlingChange1 (theVehicle1, seat) if getElementModel(theVehicle1) == 429 and seat == 0 then setVehicleHandling(theVehicle1, "maxVelocity", 270) setVehicleHandling(theVehicle1, "engineAcceleration", 20) setVehicleHandling(theVehicle1, "suspensionLowerLimit", 0) setVehicleHandling(theVehicle1, "driveType", "awd") setVehicleHandling(theVehicle1, "handlingFlags", 0x1008801) end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), handlingChange1 ) Link to comment
Castillo Posted June 21, 2013 Share Posted June 21, 2013 Well, I tested it and it seems like it worked. Link to comment
rpgforlife Posted June 21, 2013 Author Share Posted June 21, 2013 nope but i have change something and now it goes 330 km/h and if i do it lower it still will be 330 km/h -- Banshee -- (270km/h) function handlingChange1 (theVehicle1, seat) if getElementModel(theVehicle1) == 429 and seat == 0 then setVehicleHandling(theVehicle1, "maxVelocity", 200) setVehicleHandling(theVehicle1, "engineAcceleration", 20) setVehicleHandling(theVehicle1, "suspensionLowerLimit", 0) setVehicleHandling(theVehicle1, "driveType", "awd") setVehicleHandling(theVehicle1, "handlingFlags", 0x1008801) end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), handlingChange1 ) Link to comment
rpgforlife Posted June 21, 2013 Author Share Posted June 21, 2013 i have changed this : setVehicleHandling(theVehicle1, "maxVelocity", 200) setVehicleHandling(theVehicle1, "engineAcceleration", 20) but now the car will go 330 km/h and if i change it to normal how i made it, than the will also 330 km/h Link to comment
rpgforlife Posted June 21, 2013 Author Share Posted June 21, 2013 lol and if i stop the script, the banshee still go 330 km/h Link to comment
iPrestege Posted June 21, 2013 Share Posted June 21, 2013 Use : onResourceStop Event with : getElementsByType 'vehicle' getElementModel getVehicleHandling setVehicleHandling Link to comment
rpgforlife Posted June 21, 2013 Author Share Posted June 21, 2013 I have restart the server and it was normal 180 km/h than i have changed it to a high number -- Banshee -- (270km/h) function handlingChange1 (theVehicle1, seat) if getElementModel(theVehicle1) == 429 and seat == 0 then setVehicleHandling(theVehicle1, "maxVelocity", 2700000) setVehicleHandling(theVehicle1, "engineAcceleration", 50000) setVehicleHandling(theVehicle1, "suspensionLowerLimit", 0) setVehicleHandling(theVehicle1, "driveType", "awd") setVehicleHandling(theVehicle1, "handlingFlags", 0x1008801) end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), handlingChange1 ) and now it will go 180 km/h Link to comment
Castillo Posted June 21, 2013 Share Posted June 21, 2013 The max velocity is: 200000. Link to comment
rpgforlife Posted June 21, 2013 Author Share Posted June 21, 2013 ye but it don't go fast whats kind of velocity i do Link to comment
Castillo Posted June 21, 2013 Share Posted June 21, 2013 You don't understand, the velocity you set is too high, the max is 200,000. Link to comment
rpgforlife Posted June 21, 2013 Author Share Posted June 21, 2013 i have done this now, and the car still go 180 km/h and this is not more than 200,000 now -- Banshee -- (270km/h) function handlingChange1 (theVehicle1, seat) if getElementModel(theVehicle1) == 429 and seat == 0 then setVehicleHandling(theVehicle1, "maxVelocity", 2000) setVehicleHandling(theVehicle1, "engineAcceleration", 500) setVehicleHandling(theVehicle1, "suspensionLowerLimit", 0) setVehicleHandling(theVehicle1, "driveType", "awd") setVehicleHandling(theVehicle1, "handlingFlags", 0x1008801) end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), handlingChange1 ) Link to comment
Castillo Posted June 21, 2013 Share Posted June 21, 2013 I don't know how you are testing it , but I tested it and it goes far more than 180km/h. Link to comment
rpgforlife Posted June 21, 2013 Author Share Posted June 21, 2013 I changed the script in your script_editor, than i saved it and restared 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