Adding own icons
Adding own icons to the server
- Create in server addons folder dir in with name Create dir with name
anyname(your own name for the folder) - Create dir with
materialsname inanyname - Create in
materialsdir in with nameYOURNAME2(your own name for the folder) - Add icon files here (in png extension) with name:
yourname.png
Adding icons to server load
- Go to the file
addons/ehud/lua/autorun/ehud_load.lua - Paste after line
load:MaterialFolder("materials/ehud",true,false)your own line with content:load:MaterialFolder("materials/YOURNAME2",true,true) - That's all. All icons will be in the ehud.Materials variable
Accessing the icon: local mat = ehud.Materials["yourname.png"] -- yourname.png - the name of the icon in the folder