Calling a function from another file - N00B Question

Hello!

I have created a HUD on a file called “HUD.lua”, my question is how would I actually make it work? As in, how would I call it in the cl_init/init files to draw the HUD on the player’s screen.
Here is my code for HUD.lua:


function myhud()
local client = LocalPlayer()
draw.RoundedBox(3, 5, 5, 200, 100, Color(51, 58, 51, 255))
draw.SimpleText(client:Health() .. "%", "ScoreboardText", 100, 50, Color(86, 104, 86, 255), 0, 0)
local mag_left = client:GetActiveWeapon():Clip1()
local mag_extra = client:GetAmmoCount(client:GetActiveWeapon():GetPrimaryAmmoType())
local secondary_ammo = client:GetAmmoCount(client:GetActiveWeapon():GetSecondaryAmmoType())
end
hook.Add("HUDPaint", "myhud", myhud)

local tohide = {
	["CHudHealth"] = true,
	["CHudBattery"] = true,
	["CHudAmmo"] = true,
	["CHudSecondaryAmmo"] = true
}
local function HUDShouldDraw(name)
	if (tohide[name]) then
		return false;
	end
end
hook.Add("HUDShouldDraw", "hidehud", HUDShouldDraw)


All other files are the default files needed, setup found over at http://wiki.garrysmod.com/page/Gamemode_Creation

Thanks,
Safixk

If you are creating your own gamemode, just put this into beginning of your cl_init.lua



include("HUD.lua")


And this into your init.lua


AddCSLuaFile("HUD.lua")

I didn’t fail that hard. I actually just did the exact opposite of this.
Thanks, it’s working now.