mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

Add Element To Screen (Dx) functionality

Open tryangelic opened this issue 8 months ago • 1 comments

Is your feature request related to a problem? Please describe.

A great idea would be to add "object preview" to DxDraw. We have the dxDrawModel3D function, but since it's 3D, it would be ideal to add a new functionality called dxDrawElement. A suggested structure would be based on dxDrawModel3D for all elements (ped, vehicle, and object).

Describe the solution you'd like

Syntax: bool dxDrawElement(model, posiitonX, posiitonY, posiitonZ, rotationX, rotationY, rotationZ, [scaleX, scaleY, scaleZ], postGUI)

dxDrawElement(1337, 0, 0, 3, 0, 20, 0)

Describe alternatives you've considered

No response

Additional context

No response

Security Policy

  • [x] I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.

tryangelic avatar Mar 05 '26 20:03 tryangelic

I think the idea itself makes sense depending on the use case, but the main question is whether this really needs to be handled at engine level.

In many cases, similar functionality can already be achieved with Lua scripting, so adding it to the core might not be necessary unless it provides clear performance or synchronization benefits.

If this is something that cannot be reliably done client/server-side with scripts (for example due to limitations in sync or performance), then it would definitely be a useful addition. Otherwise, it might be better to keep it as a script-level solution to avoid unnecessary complexity in the core.

shadylua avatar Apr 10 '26 01:04 shadylua