PivityGmodStore

Adding own icons

Adding own icons to the server


  1. Create in server addons folder dir in with name Create dir with name anyname (your own name for the folder)
  2. Create dir with materials name in anyname
  3. Create in materials dir in with name YOURNAME2 (your own name for the folder)
  4. Add icon files here (in png extension) with name: yourname.png


Adding icons to server load

  1. Go to the file addons/ehud/lua/autorun/ehud_load.lua
  2. Paste after line load:MaterialFolder("materials/ehud",true,false) your own line with content: load:MaterialFolder("materials/YOURNAME2",true,true)
  3. 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

Can't find what you're looking for?

Contact support