ULX

Author Topic: I need help adding player models to pointshop  (Read 18491 times)

0 Members and 1 Guest are viewing this topic.

Offline Risteh

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
I need help adding player models to pointshop
« on: January 07, 2014, 08:41:35 AM »
So I've added the workshop addon of the player model to my workshop collection and I've extracted the GMA file and put it in folder format in my addons folder. I've put the player model in the pointshop successfully but unless you subscribed to the player model addon yourself, it is an error. I think it might have something to do with me not adding the resource.AddFile command for it but I think that it wont work unless I have FastDL. I sort of use FastDL on my server, I host a workshop collection with all the server's addons and the clients get the maps and CSS guns upon joining.

Please help.

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: I need help adding player models to pointshop
« Reply #1 on: January 07, 2014, 03:19:28 PM »
Code: [Select]
resource.AddWorkshop( workshopid )
Whatever the player model was from, put its workshop id there.
It'll automatically force the client to download the workshop item which will only mount on your server.

Also, threads unrelated to ULX goes in Off-Topic.
Out of the Garry's Mod business.

Offline Risteh

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: I need help adding player models to pointshop
« Reply #2 on: January 07, 2014, 06:19:06 PM »
In what file do I put that line of text?

And please move the topic - sorry.

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: I need help adding player models to pointshop
« Reply #3 on: January 08, 2014, 08:09:55 AM »
 Make a text file and put it in there.
Rename it to "yourfilename.lua".

Place it in lua/autorun/server
Out of the Garry's Mod business.

Offline Risteh

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: I need help adding player models to pointshop
« Reply #4 on: January 08, 2014, 09:42:15 PM »
It doesn't work; still comes up as an error.

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: I need help adding player models to pointshop
« Reply #5 on: January 08, 2014, 11:07:09 PM »
Hun, "it doesn't work" is very vague and will not help your situation.

What did you do exactly?
Out of the Garry's Mod business.

Offline Risteh

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: I need help adding player models to pointshop
« Reply #6 on: January 08, 2014, 11:49:31 PM »
I made an LUA file and put it in the lua/autorun/server folder and called it "workshop.lua" I put in resource.AddWorkshop( "175002964" ) into the LUA file and there's no LUA errors but everyone still sees the model as a big error sign in-game.

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: I need help adding player models to pointshop
« Reply #7 on: January 09, 2014, 12:23:04 AM »
Well if that didn't work, I don't know what to say.

Perhaps the error is with the model itself?
Out of the Garry's Mod business.

Offline Risteh

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: I need help adding player models to pointshop
« Reply #8 on: January 09, 2014, 01:02:39 AM »
Well it's no longer an error but the model has the shape and everything but it's completely black except for the eyes. I will try this with a different model.

And I think I sort of fixed it by deleting the addon folder for the model from the addons but I still have the GMA file for the addon in the server addons.

EDIT: Next round started, textures are no longer black. Weird. This is a TTT server by the way.
« Last Edit: January 09, 2014, 01:05:03 AM by Risteh »

Offline Risteh

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: I need help adding player models to pointshop
« Reply #9 on: January 09, 2014, 01:21:18 AM »
Nevermind, having the models change colour was a TTT convar. All fixed hopefully. Gonna try to install some more models now.   :D

Thanks for the help!