GoldenForge - Hat and Trail store addon

[h2]GoldenForge[/h2]

So, i’m releasing this store addon.

I made the hat/trail/item system similar to Pointshop because I wanted to port the stuff from there, and it had a pretty nice setup system for categories. But take note, currently the system isn’t made to easily add your own categories, so unless you know Lua, don’t complain here. I will make it easier soon though.

You can add your own hats and trails with ease though, just look at the others.

I do not have any documentation on creating hats/trails/categories as of now, but I’ll add it someday.

**Screenshots
**
Hats

http://puu.sh/5byi[/thumb]

Trails
[thumb]http://puu.sh/5bye[/thumb]

Settings
[thumb]http://puu.sh/5bvZ

Chat Commands
/givescrapmetal - Brings up a menu with options.
/admingivemetal - Brings up a menu for SUPERADMINS to give scrap metal to a player.

Instructions
Press F4 to open the menu.
Place the addon in your addons folder.

Changelog



--------------------------------------------------------------------------
- Version 1.1
--------------------------------------------------------------------------

Fixed scrapMetal/player not loading.
Fixed loading in singleplayer.
Fixed admin give scrap metal menu amount option.
Cleaning up clientside hat entities better now, hopefully fixed a Opaque render crash.
Added trail color option.
Added "GoldenForge <version>" tags to sv_tags ConVar.
Added a info message when player spawns.


Download

Documentation - How to create stuff

  • Will do this sometime :stuck_out_tongue:

Looks Pro.

fuck YES

Forgot to add the hotkey for the menu, added it to OP, it’s F4.

Anyway, i’m going to add power-ups and other categories soon, also complete that todo list.

Report any problems please.

It look great but I don’t understand what you realease it?

Player customization, I’d imagine.

how would i make it give all players 5 scrap metal every minuet or something?

I added functions similar to Pointshop.

Player.GiveScrapMetal(amount, <optional> reason)
Player.RemoveScrapMetal(amount, <optional> reason)

so rather like this then?



timer.Create( "gsmem", 60, 0, function()
	for k, v in pairs(GF.GrtPlayers()) do
		if ply:IsAdmin() or ply:IsSuperAdmin() then
			Player.GiveScrapMeatal(10, Thanks For Donating to the server, you get 10 more metal in 1 min)
		else
			Player.GiveScrapMetal(2, Thanks for playing on the server, you recieve mroe metal in 1 min)
		end
	end
end)

[lua]
timer.Create( “gsmem”, 60, 0, function()
for k, v in pairs(GF.GetPlayers()) do
if v:IsAdmin() or v:IsSuperAdmin() then
v:GiveScrapMeatal(10, “Thanks For Donating to the server, you get 10 more metal in 1 min”)
else
v:GiveScrapMetal(2, “Thanks for playing on the server, you recieve mroe metal in 1 min”)
end
end
end)
[/lua]

Looks pretty sleek, good job.

It is Pro.

can you tell me the commands that i need my gamemode to run to remove all hats/trails?

[gf_client.lua:961] attempt to concatenate field ‘scrapMetal’ (a nil value)
[gf_client.lua:961] attempt to concatenate field ‘scrapMetal’ (a nil value)
[gf_client.lua:961] attempt to concatenate field ‘scrapMetal’ (a nil value)
[gf_client.lua:961] attempt to concatenate field ‘scrapMetal’ (a nil value)
[gf_client.lua:961] attempt to concatenate field ‘scrapMetal’ (a nil value)
[gf_client.lua:961] attempt to concatenate field ‘scrapMetal’ (a nil value)
[gf_client.lua:961] attempt to concatenate field ‘scrapMetal’ (a nil value)
[gf_client.lua:961] attempt to concatenate field ‘scrapMetal’ (a nil value)
[gf_client.lua:961] attempt to concatenate field ‘scrapMetal’ (a nil value)

What? If you want to remove player data, just go to the data folder and remove the GoldenForge folder.

Another addon is returning something in the OnEntityCreated hook. Use SE if you own the server.
Silly hook system, i’ll probably change how I set it up.

no i was meaning at the end of a round

@ Use SE if you own the server.
Silly hook system, i’ll probably change how I set it up.

What is SE

Script-enforcer

Fucking sick
DDDDDELIVER SVN WITH ALL UR ADDONS

Just added a custom category at least i founded it easy to use