multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.42k stars 438 forks source link

Support HUD Components Customizations #3682

Open Proxy-99 opened 2 months ago

Proxy-99 commented 2 months ago

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

Support HUD Components Customizations color x pos y pos length width

Describe the solution you'd like

adding new function setHudComponent(string Component, x pos, y pos, height,width, color)

Describe alternatives you've considered

No response

Additional context

part of #3582

memory address check https://gtag.sannybuilder.com/forums/index.php?showtopic=265

Security Policy

CrosRoad95 commented 2 months ago

Make your own hud, yes, mark my post as offtopic, waste time on implementing something that i can implement in lua. Just don't remember to tell everyone you didn't find time for 5 years to do work on pr that adds actual value to mta

tederis commented 2 months ago

I would suggest the following syntax: setHudComponentAttribute(componentName, attributeName, values...), getHudComponentAttribute(componentName, attributeName) and resetHudComponents().