Removing HUD in script? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Removing HUD in script? (
/showthread.php?tid=476979)
Removing HUD in script? -
Voxel - 21.11.2013
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?
Re: Removing HUD in script? -
KickInTheMick - 21.11.2013
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
Re: Removing HUD in script? -
Wizzy951 - 21.11.2013
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);
Re: Removing HUD in script? -
Konstantinos - 21.11.2013
Only toggling the spectating mode on will hide the hud of a player.
Re: Removing HUD in script? -
Voxel - 21.11.2013
Okay and will the player still be able to controll their charecter?
Re: Removing HUD in script? -
Wizzy951 - 21.11.2013
Quote:
Originally Posted by Voxel
Okay and will the player still be able to controll their charecter?
|
Of course not.
Re: Removing HUD in script? -
RajatPawar - 21.11.2013
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 ] ) ;
}
Re: Removing HUD in script? -
amirab - 21.11.2017
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