Castillo Posted June 21, 2013 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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
rpgforlife Posted June 21, 2013 Author Posted June 21, 2013 i have tried on a car, and it doesn't work too + its a server side yes
PaiN^ Posted June 21, 2013 Posted June 21, 2013 post the meta.xml " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
rpgforlife Posted June 21, 2013 Author Posted June 21, 2013 "Faster and Faster" author="EHID" description="Let your cars go faster" version="1.0" type="script">
PaiN^ Posted June 21, 2013 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" />> " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
rpgforlife Posted June 21, 2013 Author 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 )
PaiN^ Posted June 21, 2013 Posted June 21, 2013 errors ? " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
Castillo Posted June 21, 2013 Posted June 21, 2013 Well, I tested it and it seems like it worked. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
rpgforlife Posted June 21, 2013 Author 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 )
PaiN^ Posted June 21, 2013 Posted June 21, 2013 I didn't understand " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
rpgforlife Posted June 21, 2013 Author 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
rpgforlife Posted June 21, 2013 Author Posted June 21, 2013 lol and if i stop the script, the banshee still go 330 km/h
iPrestege Posted June 21, 2013 Posted June 21, 2013 Use : onResourceStop Event with : getElementsByType 'vehicle' getElementModel getVehicleHandling setVehicleHandling
rpgforlife Posted June 21, 2013 Author 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
Castillo Posted June 21, 2013 Posted June 21, 2013 The max velocity is: 200000. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
rpgforlife Posted June 21, 2013 Author Posted June 21, 2013 ye but it don't go fast whats kind of velocity i do
Castillo Posted June 21, 2013 Posted June 21, 2013 You don't understand, the velocity you set is too high, the max is 200,000. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
rpgforlife Posted June 21, 2013 Author 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 )
Castillo Posted June 21, 2013 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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
rpgforlife Posted June 21, 2013 Author Posted June 21, 2013 I changed the script in your script_editor, than i saved it and restared
Castillo Posted June 21, 2013 Posted June 21, 2013 And entered a Banshee? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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