Removing HUD in script?
#1

Hello,

I did some research on ****** and found some information about this but that was a old topic.. So i really want to know if its possible to toggle the HUD (radar) without having to press F7 on your keyboard.

i saw it was possible with setplayerspectating but i havent tried it yet.

anything on this?
Reply
#2

Go to your menu and from options go to video options, and disable hud from there. The hud can only be disabled in-game by pressing and holding F7 button
Reply
#3

You haven't mentioned if you want to toggle it on player class selection or tutorial or where ?
This should hide it:
pawn Код:
TogglePlayerSpectating(playerid, 1);
Reply
#4

Only toggling the spectating mode on will hide the hud of a player.
Reply
#5

Okay and will the player still be able to controll their charecter?
Reply
#6

Quote:
Originally Posted by Voxel
Посмотреть сообщение
Okay and will the player still be able to controll their charecter?
Of course not.
Reply
#7

pawn Код:
new _HUDtimer[ MAX_PLAYERS ] = {-1, ... };

stock HidePlayerHUD( playerid )
{
     return (_HUDtimer[ playerid ] = SetTimerEx("RepeatLevel", 1000, 1, "d", playerid ) );
}

forward public RepeatLevel( playerid );

public RepeatLevel( playerid )
{
   return (SetPlayerDrunkLevel( playerid, 2001 ) ) ;
}

stock ShowPlayerHUD( playerid ) {
 
    if( _HUDtimer[ playerid ] != -1 ) KillTimer( _HUDtimer[ playerid ] ) ;
}
Reply
#8

I’m almost sure I’ve never seen this skin in GTA SinglePlayer :



Look at those Timberland/CAT shoes mate =)) big head and foots , most of them are buggy with the modeling and textures that’s why they do not add them in SAMP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)