Jump to content

[Script] Replace Objects


Miyuru

Recommended Posts

Posted

If you refer to the spoiler you could put it on a default spoiler of the game and use attachElements or implement it as a variant on infernus which is a bit complicated if you are a beginner

  • Thanks 1
  • Moderators
Posted

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
  • Moderators
Posted

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

  • Moderators
Posted

You can use 6. extra0, extra1, extra2, extra3, extra4, extra5.

If your project needs more than 6 you would want to use one of the above methods.

  • Like 1
Posted
2 hours ago, Tut said:

You can use 6. extra0, extra1, extra2, extra3, extra4, extra5.

If your project needs more than 6 you would want to use one of the above methods.

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

Posted (edited)
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
  • 3 weeks later...
Posted
On 12/12/2020 at 05:52, Tut said:

You can use 6. extra0, extra1, extra2, extra3, extra4, extra5.

If your project needs more than 6 you would want to use one of the above methods.

Is there a way to use like vehicle upgrades(AddVehicleUpgrade)?

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