kewiiNNN Posted October 4, 2015 Posted October 4, 2015 http://imgur.com/3i2UVsE how to fix this? when i enter greenzone the weapon icons disapear but when i left greenzone it appears.
kewiiNNN Posted October 4, 2015 Author Posted October 4, 2015 its compiled i downloaded from community..
kewiiNNN Posted October 4, 2015 Author Posted October 4, 2015 what i have to do ? haha i dont know how to script
AlvarO Posted October 4, 2015 Posted October 4, 2015 Well, what you want to do? If you want to hide the weapon hud everytime you have to: function hideWeaponHud() showPlayerHudComponentVisible("weapon", false) end addEventHandler("onResourceStart", root, hideWeaponHud)
kewiiNNN Posted October 4, 2015 Author Posted October 4, 2015 i just create a lua paste this in and meta and im done ?
Al3grab Posted October 4, 2015 Posted October 4, 2015 Here is a work around, make a .lua file, paste these in and add it on the top of the meta.xml. I don't know whether the script hiding the hud is server or client so you should try both. For server: _cp = outputChatBox -- Assign the default function to another name outputChatBox = function(a,b,c,d,e,f,g) -- Trick the default function if (string.find(a,"greenzone")) then -- Check if the passed message has got greenzone word in it (or do it your way) showPlayerHudComponentVisible(b,"weapon",true) -- Show the weapon hud (for server side) end _cp(a,b,c,d,e,f,g) -- Move to the actual function end For client: _cp = outputChatBox -- Assign the default function to another name outputChatBox = function(a,b,c,d,e,f,g) -- Trick the default function if (string.find(a,"greenzone")) then -- Check if the passed message has got greenzone word in it (or do it your way) showPlayerHudComponentVisible("weapon",true) -- Show the weapon hud (for client side) end _cp(a,b,c,d,e,f,g) -- Move to the actual function end
kewiiNNN Posted October 4, 2015 Author Posted October 4, 2015 i pasted this in lua and created the meta and still nothing...
Al3grab Posted October 4, 2015 Posted October 4, 2015 i pasted this in lua and created the meta and still nothing... What exactly are you trying to do here? send the script for checking
kewiiNNN Posted October 4, 2015 Author Posted October 4, 2015 i want to hide the old weapon hud only the health and money and armor is gone but the old weapon hud is always on when i restart the other hud script it disapear. but i cannot paste the script because the hud is compiled...
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