Scripting/Client/Functions/ToggleModernHUD
(0.6) true turns the radar into a GTA V style rectangle at the bottom left (on Android where the touch layout puts the radar) with a green health bar (red at 25 or less) and a blue armour bar under it, in one black frame; the round radar ring and the health / armour numbers go away. The map, blips, gang zones and radar pictures stay as they are; blips that are off the map sit on its edge. false brings the stock HUD back, and so does leaving the server. SetHUDItemEnabled still works on top of it (HUD_RADAR, HUD_HEALTH, HUD_ARMOUR hide the map / bars). PC, Android and PS3.
Syntax
ToggleModernHUD(bool)Arguments
- bool value
Example
function onScriptLoad()
{
ToggleModernHUD( true );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- GetScreenWidth
- WorldPosToScreen
- ScreenPosToWorld
- GetGroundZLevel
- GetGroundZLevelForPos
- GetGroundZLevelForPosLoad
- Draw3DText
- Draw3DSprite
- Draw3DTextWorld
- Draw3DSpriteWorld
- SetCameraMatrix
- SetCameraTarget
Section: Screen, world and camera
Categories: Client functions | Screen, world and camera