Jump to content

Hud


kewiiNNN

Recommended Posts

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 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...