Jump to content

Rank Title above Nametag


Pierce

Recommended Posts

Hi!

I want to ask how to make that people with rank have their rank above their nametag

so for example it'd look like this

Admin

Mike

I Don't know really how to even start doing something like this so that's why i ask in here please help me.

Oh,and it'd be good if it'd look in acl which group has which player and if someone has acl Admin then it'd give him

a rank above his nametag.

Sorry for my horrible english.

Edited by Guest
Link to comment

Get the dimensions of the ped which you will need later so store them in a variable which you get quite frequently so it looks better. Then create a 3D text using the Z of the dimension up to where you want it to be ( might take a bit ) then it's done.

Link to comment
Get the dimensions of the ped which you will need later so store them in a variable which you get quite frequently so it looks better. Then create a 3D text using the Z of the dimension up to where you want it to be ( might take a bit ) then it's done.

I don't understand,i'm not good enough in lua to understand what exactly to do

i've looked on wiki but i didn't find any example for anything u said in that post

i can't find any example to get dimension for any ped or player

and i can't find text in 3D on wiki(example of it)

Link to comment
  • 2 weeks later...

well, main dimension is '0'. so if you ain't changing any dimensions then you can simply use the main one.

For the 3D text there were a post earlier saying what should be used ( even a script was given ), unfortunately i don't have the link to that post, so you will need to search the forum scripting section.

For the rank title to stay above the head you will need to use one of these events ( as timers ain't recommended ):

onClientRender 
onClientPreRender 

And before you use the events you need to get the position of the player (getElementPosition) and use the Z-axis to place it above the head, of course you can make it more advanced, but for that there is too much of explanation to do.

Link to comment

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...