Jump to content

What do I need for hud.


IIYAMA

Recommended Posts

  • Moderators
Posted (edited)

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

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

  • Moderators
Posted

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

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

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

  • Moderators
Posted
Use onPlayerWasted or create a timer to disable hud.

Maybe onPlayerSpawn and timer.. because there is the problem.

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted

Why use the two options? Only use a timer...

setTimer( 
  function() 
       showPlayerHudComponent('all',false) 
  end 
end,500,0) 

EPT Team Server Development: 0%

Learning C++ | C++ is amazing xD

  • Moderators
Posted

that makes lagg..

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted

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.

EPT Team Server Development: 0%

Learning C++ | C++ is amazing xD

Posted

You forgot about 'source'.

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

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.

  • Moderators
Posted

but what is: onClientRender ?? :?

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

  • Moderators
Posted

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

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

  • Moderators
Posted

yes I saw the resource..

But I want the lagg so low as possible. So my choose is:

OnClientPlayerSpawn, "gamemode" and "map"

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

  • Moderators
Posted

yes that is right, but this is about deactivate the gta san hud.

It is not about showing up the GCC hud xD

GCC = clan

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

  • Moderators
Posted

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

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

  • 2 weeks later...
  • Moderators
Posted

Well onclient render does lagg a little. I can feel it, when my hud is running.

I have still the max frames, but the smooth movements are gone -_-'

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

  • Moderators
Posted

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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