Mafia Scene - Mafia I & II Game Fan Site

Modders Corner => Mafia Editing => Mafia II mods => Topic started by: crazypreacher on June 03, 2012, 07:42:45 PM

Title: I would like a Mod
Post by: crazypreacher on June 03, 2012, 07:42:45 PM
to remove the HUD perm.
Title: I would like a Mod
Post by: eXistenZ34 on June 03, 2012, 07:59:38 PM
Salut crazypreacher.


 







Quotegame.hud:RadarShow(xx) xx = truefalse

game.hud:ScoreShow(xx) xx = truefalse




game.hud:SubtitlesShow(xx) xx = truefalse




game.hud:SpeedometerShow(xx) xx = truefalse




game.hud:ActionButtonsShow(xx) xx = truefalse




game.hud:MessageAreaShow(xx) xx = truefalse




game.hud:InfoAreaShow(xx) xx = truefalse








 




Exemple avec l'injecteur




1ers clic cacher, 2eme cllic montrer







Quoteif
i
==nil
then
i
=1
game.hud:RadarShow(false
) else
i
=nil
game.hud:RadarShow(true
) end


Title: I would like a Mod
Post by: vitoandolini on June 03, 2012, 09:19:23 PM
D̮̩sol̮̩ d'utiliser ce topic, mais comment fait-on pour d̮̩clencher l'animation oÃÆÃ¹ Vito pisse avec l'injecteur ? (j'avais coll̮̩ ta ligne de code eXistenZ34 sur le fichier F10.lua, mais ̮̤a marche pas et le jeu freeze...)
Title: I would like a Mod
Post by: Deewarz on June 04, 2012, 02:21:57 PM
Encore plus simple pour cacher tout HUD d'un seul coup :







Quotegame.hud:Show(false)

 




Pour l'afficher :







Quotegame.hud:Show(true)

 




Soit en utilisant le code d' eXistenZ34 :







Quoteif i==nil then i=1 game.hud:Show(false) else i=nil game.hud:Show(true) end