LiOneLMeSsIShoT Posted August 12, 2013 Share Posted August 12, 2013 how to set new vehicle speed...not all cars...only car like 503 id..help please Link to comment
LiOneLMeSsIShoT Posted August 12, 2013 Author Share Posted August 12, 2013 setModelHandling I know that..but what i put in setModelHandling? i mean..what function inside to put car speed?. Gimme example if you can..and thanks Link to comment
Castillo Posted August 12, 2013 Share Posted August 12, 2013 "engineAcceleration" "maxVelocity" These should do. Link to comment
GrimTheXReaperrr Posted August 12, 2013 Share Posted August 12, 2013 Solidsnake is correct but i think you mean how to do so heres a few examples i'll do two examples --Lets say we want to change the handling of a infurnus then a example function LetsChangeThisHandling () for index,vValue in ipairs(getElementsByType("vehicle")) do if getElementModel(vValue) == 411 then setVehicleHandling(vValue, "maxVelocity", 120) setVehicleHandling(vValue, "engineAcceleration", 15) end end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), LetsChangeThisHandling ) engineAcceleration would change the Acceleration for example lets say Solidsnake and you are about to race in game Solidsnake is in in the Infurnus but your in a bullet using the same handling script just less engineAcceleration Solidsnake would start off faster and maxVelocity is the top speed your car can get so if the bullets top speed was higher than the code i sent you in the long road the bullet would win hope this helps you if you need ANY help with these please let us know Thanks !!! God Bless All !!!!!!! you don't have to put that in Link to comment
GrimTheXReaperrr Posted August 12, 2013 Share Posted August 12, 2013 local exampleHandlings = { ["Bullet"] = { mass = 2000, engineAcceleration = 15, tractionMultiplier = 0.9, tractionLoss = 1.0 }, ["Super Gt"] = { engineAcceleration = 15, tractionMultiplier = 0.9, tractionLoss = 1.0 }, ["Taxi"] = { engineAcceleration = 5.5 } } function handling_functionName ( ) local vName = getVehicleName ( source ) if exampleHandlings[vName] then for handling,vValue in pairs ( exampleHandlings[vName] ) do setVehicleHandling ( source, handling, vValue ) end end end addEventHandler ( "onVehicleStartEnter", root, handling_functionName ) this is Example 2 Hope this helps any and all who needs info God Bless All !!!!!!! ( Jesus Christ is Lord and Savior ) Link to comment
LiOneLMeSsIShoT Posted August 12, 2013 Author Share Posted August 12, 2013 Solidsnake is correctbut i think you mean how to do so heres a few examples i'll do two examples --Lets say we want to change the handling of a infurnus then a example function LetsChangeThisHandling () for index,vValue in ipairs(getElementsByType("vehicle")) do if getElementModel(vValue) == 411 then setVehicleHandling(vValue, "maxVelocity", 120) setVehicleHandling(vValue, "engineAcceleration", 15) end end end WOWOWOOWO Thank you Very much man ..Really I want some Scripting help..if you can to contact me for it..add me in skype that's if you feel like helping me ..And thanks Skype: lionelmessishoter addEventHandler ( "onPlayerVehicleEnter", getRootElement(), LetsChangeThisHandling ) engineAcceleration would change the Acceleration for example lets say Solidsnake and you are about to race in game Solidsnake is in in the Infurnus but your in a bullet using the same handling script just less engineAcceleration Solidsnake would start off faster and maxVelocity is the top speed your car can get so if the bullets top speed was higher than the code i sent you in the long road the bullet would win hope this helps you if you need ANY help with these please let us know Thanks !!! God Bless All !!!!!!! you don't have to put that in Link to comment
GrimTheXReaperrr Posted August 12, 2013 Share Posted August 12, 2013 Lol you just posted a reply with nothing in it ? OH did not mean to say you don't have to put that in Disguard me typing that part God Bless All ( Jesus Christ is Lord and Savior ) Link to comment
LiOneLMeSsIShoT Posted August 12, 2013 Author Share Posted August 12, 2013 Lol you just posted a reply with nothing in it ?OH did not mean to say you don't have to put that in Disguard me typing that part God Bless All ( Jesus Christ is Lord and Savior ) Sorry man,,Was really busy...Also THANKS A LOT! For your nice help May you help me with some things? about scripting.. if you feel like helping me..Please Please add me in skype skype:lionelmessishoter THANKS AGAIN! Link to comment
GrimTheXReaperrr Posted August 12, 2013 Share Posted August 12, 2013 Let me know when you want me to finish helping you and the Chat Structure God Bless You and God Bless All !!!!!!! ( Jesus Christ is Lord and Savior ) 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