xScatta Posted July 8, 2016 Share Posted July 8, 2016 Please, tell me which functions did he use?!, how is that possible? Because we can't edit vehicles.ide. Link to comment
Simple0x47 Posted July 8, 2016 Share Posted July 8, 2016 Maybe he created the wheels with createObject, then it is attached to the vehicle with attachElement. Some event handlers for the acceleration, etc... and finally setObjectScale for the change of the wheel size. Link to comment
Bean666 Posted July 8, 2016 Share Posted July 8, 2016 ye im also thinking that he is using setObjectScale probably. Link to comment
Walid Posted July 8, 2016 Share Posted July 8, 2016 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
Captain Cody Posted July 8, 2016 Share Posted July 8, 2016 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
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