• Print

Author Topic: Pointshop Hats - Help Needed  (Read 4253 times)

0 Members and 1 Guest are viewing this topic.

Offline Janjakob2000

  • Jr. Member
  • **
  • Posts: 65
  • Karma: 0
Pointshop Hats - Help Needed
« on: July 05, 2015, 09:55:31 am »
So I wanted to add hats to my pointshop, but I have a problem, I don't know what the AddValid is called for the hat, is it AddValidHat, AddValidHead, what is it?
Code: Lua
  1. if (SERVER) then
  2.    player_manager.AddValidHat( "My Hat", "directory/to/myhat" )
  3.    list.Set( "PlayerOptionsModel", "My Hat", "directory/to/myhat" )
  4. end
  5.  
  6. if ( SERVER ) then
  7.    resource.AddFile( "directory/to/myhat.mdl" )
  8.    resource.AddFile( "directory/to/myhat.dx80.vtx" )
  9.    resource.AddFile( "directory/to/myhat.dx90.vtx" )
  10.    resource.AddFile( "directory/to/myhat.phy" )
  11.    resource.AddFile( "directory/to/myhat.vvd")
  12.    resource.AddFile( "directory/to/myhat.sw.vtx" )
  13.    resource.AddFile( "directory/to/myhat.vmt" )
  14.    resource.AddFile( "directory/to/myhat.vtx" )
  15. end

Here's my code, did I do anything wrong maybe?


  • Print