LilSoda Posted July 6, 2018 Share Posted July 6, 2018 how can i disable the default mta hud? Link to comment
mazarati21 Posted July 6, 2018 Share Posted July 6, 2018 (edited) --This will disable original hud function hideall(player) setPlayerHudComponentVisible ( "ammo", false ) setPlayerHudComponentVisible ( "area_name", false ) setPlayerHudComponentVisible ( "armour", false ) setPlayerHudComponentVisible ( "breath", false ) setPlayerHudComponentVisible ( "clock", false ) setPlayerHudComponentVisible ( "health", false ) setPlayerHudComponentVisible ( "money", false ) setPlayerHudComponentVisible ( "vehicle_name", false ) setPlayerHudComponentVisible ( "weapon", false ) end addEventHandler ( "onClientResourceStart", getRootElement(), hideall ) Edited July 6, 2018 by mazarati21 1 Link to comment
Dimos7 Posted July 6, 2018 Share Posted July 6, 2018 setPlayerHudComponentVisible("all", false) Link to comment
LilSoda Posted July 7, 2018 Author Share Posted July 7, 2018 9 hours ago, mazarati21 said: --This will disable original hud function hideall(player) setPlayerHudComponentVisible ( "ammo", false ) setPlayerHudComponentVisible ( "area_name", false ) setPlayerHudComponentVisible ( "armour", false ) setPlayerHudComponentVisible ( "breath", false ) setPlayerHudComponentVisible ( "clock", false ) setPlayerHudComponentVisible ( "health", false ) setPlayerHudComponentVisible ( "money", false ) setPlayerHudComponentVisible ( "vehicle_name", false ) setPlayerHudComponentVisible ( "weapon", false ) end addEventHandler ( "onClientResourceStart", getRootElement(), hideall ) Where should i type that? Where should i type that? Link to comment
mazarati21 Posted July 7, 2018 Share Posted July 7, 2018 (edited) Create a folder with two files client.lua and meta.xml Edited July 7, 2018 by mazarati21 Link to comment
JeViCo Posted July 7, 2018 Share Posted July 7, 2018 (edited) client.lua addEventHandler("onClientResourceStart",resourceRoot,function() setPlayerHudComponentVisible("all",false) setPlayerHudComponentVisible("crosshair",true) end) meta.xml <meta> <info author="JeViCo" description="" version="1.0" type="script" /> <script src="hud.lua" type="client" cache="false"/> </meta> Edited July 7, 2018 by Juuve 1 Link to comment
LilSoda Posted July 7, 2018 Author Share Posted July 7, 2018 2 hours ago, Juuve said: client.lua addEventHandler("onClientResourceStart",resourceRoot,function() setPlayerHudComponentVisible("all",false) setPlayerHudComponentVisible("crosshair",true) end) meta.xml <meta> <info author="JeViCo" description="" version="1.0" type="script" /> <script src="hud.lua" type="client" cache="false"/> </meta> in which folder should i make a folder with meta.xml and client.lua? ??? 1 Link to comment
JeViCo Posted July 7, 2018 Share Posted July 7, 2018 8 minutes ago, LilSoda said: in which folder should i make a folder with meta.xml and client.lua? ??? mods/deathmatch/resources/ 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now