Jump to content

F1


CapY

Recommended Posts

Posted

Is it possible when player joins to the server and when he press F1 to don't see these buttons: weapons , speed , grav and time .

Can it be only available for admins ?

Posted

You can use

guiSetEnabled 

to disable a GUI element.

When a player login ("onPlayerLogin") check if he's admin and triggerClientEvent according to it, if he's admin enable the buttons, if he's not disable them.

Or maybe when the player press F1.

  • MTA Team
Posted
-- client  
guiSetEnabled(getControl("grav"), false)  

look for more id's in the table "wndMain"

or try:

wndMain =  {} at the end of ur script

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