Jump to content

customized hud


TrueLife

Recommended Posts

Hello I have an idea for a custom HUD. It will contain several images and I will need to layer them. Currently I have the main background part of the hud which is a black panel.

When the script is enabled the black panel shows up all the time. Even on login screen...

I would like it to only load on player login and I will also need it to load a very similar setup when entering a vehicle.

so In vehicle it will show Vehicle Hud and when on foot It will show Normal HUD.

---

anyways the current hud background panel appears on top of the mini map which I need to place on top if it. Also the radio stations and MTA version in the bottom right are covered up. Any help with this would be greatly appreciated.

function showClientImage()

guiCreateStaticImage( -0.001, 0.799, 1.0, 0.2, "hud1.png", true, nil )

end

addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), showClientImage )

Link to comment
  • 3 weeks later...
  • 2 weeks later...

i'm not to sure if your using your own custom scripts and ect ect

but i'll just assume your using RP scripts thats been released

but for example you could do

something like this

local logged = getElementData(yourVaribleHere, "loggedin") 
                         
if (logged==1) then -- logged ==1 in most servers means they are logged in 0 means player is not logged in 
  
blah blah set blah blah  
  
get my point ? 
  

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