Refactor to use "dxDrawModel3D" instead of "createObject"
Simply replace objects with https://wiki.multitheftauto.com/wiki/DxDrawModel3D
what is the advantage of this?
It may be an option to choose between "virtual objects" aka dxDrawModel, and regular, just drawing model is more performant
are you sure about this? i need to do some comparison tests
At least you don't risk more important objects to disappear when player, element has attached many objects
impossible to achieve using regular createObject
two modes must be used simultaneously, not just one or the other the function could be "attachVirtual" and should be synchronized between players
It also should support attaching to vehicles ( if it is not supported yet ), i could use it for more efficient visual tuning
I assume that we will have to use "onClientRender" to render virtual objects (currently we only use "onPedsProcessed")
I highly recommend testing this, and benchmarking the comparisons
For now I think this feature is experimental because it was only reintroduced recently. Idk of production servers that use ir already
It may still be in testing, but I'll try to develop something similar to this repo
The one where it appears that the gun models have dark lighting, but on other models the lighting is normal I reported the problem mtasa-blue