Jump to content

Changing wheels size?! [VIDEO]


xScatta

Recommended Posts

All what you need is:

-- Table 
local ComponentName = { 
    [1] = "wheel_rf_dummy", --Right Front Wheel 
    [2] = "wheel_lf_dummy", --Left Front Wheel 
    [3] = "wheel_rb_dummy", --Right Back Wheel 
    [4] = "wheel_lb_dummy", --Left Back Wheel 
} 
  
-- Functions 
getVehicleComponentPosition() 
getVehicleComponentRotation() 
setVehicleComponentVisible() 
createObject() 
setElementPosition() 
setElementRotation() 
setObjectScale() 
attachElements() 
  
-- Events 
"onClientVehicleEnter" 
"onClientVehicleExit" 
"onClientPreRender" 

Link to comment

You can see the color of the wheels changing, so yes he just creating a new set of wheels. And changing suspension height.

What this does not account for though is stability and off roading, just because you have large wheels with this process doesn't mean at all they will function as you plan. -- Source, I'm a mechanic In real life.

--

Any ways -

Using getVehicleComponentPosition, getVehicleComponentRotation, createObject, onClientRender.

AttachElement, setAttachedOffsets, Now I would suggest you move Z access up a little bit as the wheel gets bigger to prevent the wheels from going into the ground.

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