Jump to content

TropicalFrizzy

Members
  • Posts

    9
  • Joined

  • Last visited

TropicalFrizzy's Achievements

Newbie

Newbie (4/54)

1

Reputation

  1. Is there a way of getting this ? the link is dead.
  2. It looks like this now local state = getElementData(localPlayer, "state") if state == "dead" or state == "waiting" then return end and now it works, thanks very much. Now I will know how it works
  3. I "fixed it" I changed the "player state" to "state" and == "spectating" to "dead" and it hides it when a player is dead. but if someone joins the server and is in a "waiting" state it shows up for them can I just add =="dead", "waiting" ?? and could I have the sync I want to see how it works anyway, please.
  4. That does not work for some reason. I even tried to change spectating to spectate, dead and Dead and still it does not hide it when you are spectating someone else.
  5. I tried the Health and Nos with my friend and when you die it does go away but then you spectate someone else it pops up again. is there a way just to hide it when you spectate someone?
  6. Thanks, had to change 1 line because it wasn't showing the health bar. change this function drawHealthAndNOS() to function drawHealth() and how do you get the lines in the forum so it looks like Lua coding?
  7. Would it be something like this? function isPedDead() if isPedDead then Dead = showPlayerHudComponent(thePlayer "source, nitroShow",false) else getElementHealth(player) if Health then showPlayerHudComponent(thePlayer "source, nitroShow",true) end end end
  8. Hi, I found this script on MTA Community https://community.multitheftauto.com/index.php?p=resources&s=details&id=9045 I would like to make some changes to it, I have tried many ways to do this but I keep on failing, I'm a beginner on the Lua scripting. I was wondering if someone could help me out. I want to make this Health and Nitros to disappear when a player has died. I am trying to make a DM race server.
×
×
  • Create New...