Jump to content

What do I need for hud.


IIYAMA

Recommended Posts

  • Moderators

Hey, I got a question:

What is onClientRender ?

= when you spawn you load objects?

or

= on join server and downloading scripts?

I am using a script that dissable the normal gta hud...

but when you get killed, the normal gta san hud come back somehow..

Because I have a hud and it have sometimes a bug. You see two hud's when you die.

I use onGameModeStart, ongameModeMapStart and onPlayerJoin to dissable the gta san hud.

Do I need on ClientRender to??

Gamemode: Stealth.

pls tell me what I need. :D

Edited by Guest
Link to comment

Not for me. And my computer is a shit..

But you can use onPlayerWasted or onPlayerSpawn.

onPlayerWasted

addEventHandler('onPlayerWasted',root, 
 function() 
       showPlayerHudComponent('all',false) 
end) 

For onPlayerSpawn, the same, only change event name.

Link to comment
  • Moderators

yes I know... But I don't understand the meaning of this:

This event is triggered every time GTA renders a new frame. It is required for the DirectX drawing functions, and also useful for other clientside operations that have to be applied repeatedly with very short time differences between them.

So If I play my mta at 70 frames, will this script activated every 70 times in a frame? :? It sounds terible laggy...

Link to comment
  • Moderators

timer don't lagg, but I think what I did is also good.

But maybe you know the game age of empire 3?

Well I made a map with arround 1200 scripts and it is crashing in mutiplayer :lol:

I love the game but I hate the out of sync xD

Link to comment
  • 2 weeks later...

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