Announcement

Collapse
No announcement yet.

ShowHealthHUD & ShowWeaponHUD

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    ShowHealthHUD & ShowWeaponHUD

    Hello,

    is anyone else getting the same issue or am i doing something wrong,

    I'm trying to hide the Health and Weapon that's on-screen by default so I have added the following code to function OnPlayerJoin(player) but the HUD's still show

    Code:
    ShowHealthHUD(false)
    ShowWeaponHUD(false)
    This is within a client lua

    Thanks

    #2
    Hey, check the devlog for script errors.
    It def. works and is used in the example scripts when you press RightCTRL https://github.com/BlueMountainsIO/O.../world.lua#L38

    Comment


      #3
      Thanks for the help Talos,

      I change it to "function OnPlayerSpawn" and all works fine now

      Code:
      function OnPlayerSpawn(playerid)
      ShowHealthHUD(false)
      ShowWeaponHUD(false)
      end
      AddEvent("OnPlayerSpawn", OnPlayerSpawn)
      I'm guessing the function OnPlayerJoin may be to early to remove the HUD?

      Thanks

      Comment

      Working...
      X