Jump to content

[Script] Replace Objects


Miyuru

Recommended Posts

  • Administrators

See above advice it will help get you started. Another way of doing it is add all custom parts in the DFF and hiding the components with a shader or setting unused elements position to somewhere far out of view.

  • Thanks 1
Link to comment
  • Administrators

They are components that are children of dummy chassis_dummy and a maximum of 6 can be spawned. They are named extra0 through extra5. These components have static positions and rotates along the vehicle, so you can't make them child of trunks or specific vehicle parts.

You can add vehicle variants through a modeling software.

  • Thanks 1
Link to comment
10 hours ago, Tut said:

They are components that are children of dummy chassis_dummy and a maximum of 6 can be spawned. They are named extra0 through extra5. These components have static positions and rotates along the vehicle, so you can't make them child of trunks or specific vehicle parts.

You can add vehicle variants through a modeling software.

I made variants using Blender.
Thanks!

But can I use only 5 variants for each vehicle? :(:(

spacer.pngspacer.pngspacer.png

Link to comment
22 hours ago, Miyuru said:

I Found a Method "setVehicleComponentVisible" but it's only show local player? :(

This is because setVehicleComponentVisible is a client-side only function.
It's actually possible to combine 2 models into the same file and run them without ID's, or make a custom system for ID's.
I've successfully added different vehicles to MTA without replacing anything.
Note it's not advised because the file size just gets insane, textures get jumbled up, and other things.

Edited by ShayF
  • Like 1
Link to comment
  • 3 weeks later...

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