i put this on the server.lau
addEventHandler ( "onPlayerJoin", root,
function ( )
setPlayerHudComponentVisible ( source, "all", false )
end
)
on meta i put
and on client i put
local components = { "weapon", "ammo", "health", "clock", "money", "breath", "armour", "wanted" }
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()),
function ()
for _, component in ipairs( components ) do
setPlayerHudComponentVisible( component, false )
end
end)
and it doesn't work