Jump to content

Need..Help


Recommended Posts

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

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
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 
  
  
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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...