Jump to content

Position of the Health bar etc.


Trevit

Recommended Posts

Posted

Hi,

If you look at any Player ingame, you see his name and health. I want to change the position of the player's name to his head and I want to make a seperate bar for his armor.

How can i do this?

Posted

that's not right, if i'm right every should see them, and about that you shouldn't see yours, there is a way but i don't know it.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

well every player will see it, because client scripts run for every player.

loop through players onClientRender event, and draw a bar for every one, if player ~= getLocalPlayer().

?

Posted

so with that check, won't show for the local player, right? ( i suposed was like this :P )

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Check this resource or the video if you don't want to download it: https://community.multitheftauto.com/index.php?p= ... ils&id=234

It was made as an example for people to learn about ped controls, there is also a health bar for the peds, check how it was made.

Posted

Thanks for the link.

I have another little problem at the moment:

Always when a player enters a vehicle, he starts the engine.

I tried to solve it with "onPlayerVehicleEnter" and "onVehicleEnter", but if i use that, he tries to start the engine, but the process gets interrupted. I want that he doesn't try it. Do you know any way for that?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...