Dreft Posted May 2, 2010 Posted May 2, 2010 Is it possible to show HUD elements after using setCameraMatrix() ? Because after setCameraMatrix() all HUD is hidden. https://wiki.multitheftauto.com/wiki/Sho ... dComponent doesn't work to do that.
Callum Posted May 2, 2010 Posted May 2, 2010 Note: Calling this function takes the camera's focus away from the player and sets the camera in a fixed position and rotation. I guess that means as it's not focused on the player, and the HUD is a property of the player element, it won't show. Retired
dzek (varez) Posted May 2, 2010 Posted May 2, 2010 you have to re-draw it using dx functions Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
Dreft Posted May 2, 2010 Author Posted May 2, 2010 I've using setCameraMatrix() in food shop to see sales-man in first person view. Then I showing GUI window where player chooses what he want's to buy. Food increase health, so I wanted HUD that player see how much HP he have. Maybe I insert label in GUI window with "Current health: [HP HERE]".. you have to re-draw it using dx functions How I can redraw HUD using dx functions ?
robhol Posted May 2, 2010 Posted May 2, 2010 Trust me, redrawing HUD with GUI is partly ok, partly difficult, partly f**king impossible (radar), but a simple health bar is no biggie. Do NOT PM ME for help unless invited. - New MTA Script Editor Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.
karlis Posted May 3, 2010 Posted May 3, 2010 rob, square radar will be possible in 1.0.4 i think(unless rotation will spoil dxDrawImageSection, too) [WIP]GTA IV style hud+custom blips + blip text + circular radar areas
dzek (varez) Posted May 3, 2010 Posted May 3, 2010 i think radar in interior isnt needed.. its empty anyway Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
karlis Posted May 3, 2010 Posted May 3, 2010 yep, and producing blips w/o radar is easy one thing i would like is possibility to change "blips only" [WIP]GTA IV style hud+custom blips + blip text + circular radar areas
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now