Jump to content

[HELP] get vehicle components being dummies/having 'subcomponents'?


maximumdrive

Recommended Posts

Posted

Hi all,

it's possible to get a Lua-table containing vehicle component's names using client function getVehicleComponents(). But there also can be components, which are dummies/containers, having subcomponents, e.g.:

 

-hoods

---hood1

---hood2

 

Please note that they can be not only 'standard' (as 'boot_dummy', 'door_lf_dummy' etc) in case of custom vehicle models. Is it possible to parse DFF's raw data in a way to detect 'containers' having subcomponents? Perhaps it could be nice to check them via getVehicleModelDummyPosition() (if false, that's not dummy LOL), but this function works only with stock GTA dummies as it is noticed in wiki.

 

Please help.

Posted

You can open the DFF in zModeler, unless you insist using scripts.

I can do 3D vehicle/object mods and basic scripts from scratch, contact me for free help!!
Skype/Discord/Telegram: [email protected] / Justin|X5|#0977 / @JustinX5
Xtreme 5 Gaming - COMING SOON!

I'd love it if more people in MTA utilized these amazing features, so please ask me anything related to 3D modeling/basic scripting/etc.
The expert knows more and more about less and less until they know everything about nothing.

Posted (edited)
3 hours ago, JustinMTA said:

You can open the DFF in zModeler, unless you insist using scripts.

Sorry, perhaps I didn't explain it correctly. It's really possible to open it with zModeler, but all those vehicles are 'fixed' to work with our tuning system, and there're too many components.

The system works via onClientElementStreamIn()/Out(), making only needed vehicle components visible. In case of sync, I have to write endless component-tables, that looks like a great kind of routine, so I try to find an '(half)-automatic' solution.  

Edited by maximumdrive
Posted (edited)

I still don't quite understand what you're asking for.
Read this it can help you maybe:
Vehicle component manipulation

Edited by JustinMTA

I can do 3D vehicle/object mods and basic scripts from scratch, contact me for free help!!
Skype/Discord/Telegram: [email protected] / Justin|X5|#0977 / @JustinX5
Xtreme 5 Gaming - COMING SOON!

I'd love it if more people in MTA utilized these amazing features, so please ask me anything related to 3D modeling/basic scripting/etc.
The expert knows more and more about less and less until they know everything about nothing.

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