idk how to add custom moduls to my pointshop.
im trying to add samus modul to my server but all that come's is a error.
how do i fix that?
if im going to add addons and custom models do i need fastDL?
if i need fastDL can you show me a quick tutorial via chate how to use the dropbox!
You gotta make a lua script for the model. Use the first model you get with the mod as the base. Here what I did and I got this.
[SUB]ITEM.Name = 'Blue Spartan'
ITEM.Price = 25000
ITEM.Model = 'models/player/Halo3/Spartan_blue.mdl'
function ITEM:OnEquip(ply, modifications)
if not ply._OldModel then
ply._OldModel = ply:GetModel()
end
timer.Simple(1, function() ply:SetModel(self.Model) end)
end
function ITEM:OnHolster(ply)
if ply._OldModel then
ply:SetModel(ply._OldModel)
end
end[/SUB]
The ITEM.Model needs to match your servers "models/players" folder so it will see that the model is there and load it up. If you don't have the models in the "models/player/" you'll just get a big fat f*ck you sign which is called the Error sign.
Edit: If the model is in another folder then you need to add the other folder before the model name. So if you look at mine it shows models/player/Halo3/Spartan_blue.mdl.
[QUOTE=Creighmoe;39372776]You gotta make a lua script for the model. Use the first model you get with the mod as the base. Here what I did and I got this.
[SUB]ITEM.Name = 'Blue Spartan'
ITEM.Price = 25000
ITEM.Model = 'models/player/Halo3/Spartan_blue.mdl'
function ITEM:OnEquip(ply, modifications)
if not ply._OldModel then
ply._OldModel = ply:GetModel()
end
timer.Simple(1, function() ply:SetModel(self.Model) end)
end
function ITEM:OnHolster(ply)
if ply._OldModel then
ply:SetModel(ply._OldModel)
end
end[/SUB]
The ITEM.Model needs to match your servers "models/players" folder so it will see that the model is there and load it up. If you don't have the models in the "models/player/" you'll just get a big fat f*ck you sign which is called the Error sign.
Edit: If the model is in another folder then you need to add the other folder before the model name. So if you look at mine it shows models/player/Halo3/Spartan_blue.mdl.[/QUOTE]
when i do this, my player model wont equip. I added a hatsune miku skin and it has FastDL setup but whenever I buy it in shop, it just doesn't equip or even show any sign of working.
Here is the code:
[CODE]ITEM.Name = 'Hatsune Miku'
ITEM.Price = 100
ITEM.Model = 'models/player/miku.mdl'
function ITEM:OnEquip(ply, modifications)
if not ply._OldModel then
ply._OldModel = ply:GetModel()
end
timer.Simple(1, function() ply:SetModel(self.Model) end)
end
function ITEM:OnHolster(ply)
if ply._OldModel then
ply:SetModel(ply._OldModel)
end
end[/CODE]
Let me see what I can do for you man. I know how much of a pain in the ass this sh!t can be.
I'm having an issue with thePointShop function command: function CATEGORY:CanPlayerSee(ply)
return ply:IsAdmin()
end I've tried this but it will not work.
[QUOTE=Creighmoe;39372776]You gotta make a lua script for the model. Use the first model you get with the mod as the base. Here what I did and I got this.
[SUB]ITEM.Name = 'Blue Spartan'
ITEM.Price = 25000
ITEM.Model = 'models/player/Halo3/Spartan_blue.mdl'
function ITEM:OnEquip(ply, modifications)
if not ply._OldModel then
ply._OldModel = ply:GetModel()
end
timer.Simple(1, function() ply:SetModel(self.Model) end)
end
function ITEM:OnHolster(ply)
if ply._OldModel then
ply:SetModel(ply._OldModel)
end
end[/SUB]
The ITEM.Model needs to match your servers "models/players" folder so it will see that the model is there and load it up. If you don't have the models in the "models/player/" you'll just get a big fat f*ck you sign which is called the Error sign.
Edit: If the model is in another folder then you need to add the other folder before the model name. So if you look at mine it shows models/player/Halo3/Spartan_blue.mdl.[/QUOTE]
I am running the server as a like port forward.
I cant find a models/player/ in the GarrysMod folder in steam.
Do I need a dedicated server or not?
Or Do I need to buy?
[QUOTE=TenBoster;39112494]idk how to add custom moduls to my pointshop.
im trying to add samus modul to my server but all that come's is a error.
how do i fix that?
if im going to add addons and custom models do i need fastDL?
if i need fastDL can you show me a quick tutorial via chate how to use the dropbox![/QUOTE]
Hey man, so I use a Lilith Skin for an admin of mine on PS. Heres what I do.
Just set up a category, create the lua name for the Samus model inside the cat(ie. samus.lua) then put this inside the file:
[CODE]ITEM.Name = '' -- Name of the item you want to appear in the PS
ITEM.Price = 0 -- Items price
ITEM.Model = '' -- Items model(Just go into your Q menu, scroll down to addons, and locate the Samus model folder, and right click the model inside, hit copy, and paste it here. If you're having trouble finding it, hold C, go to playermodels, and click the Samus model, it will tell you the folders name.)
---- Dont mess with anything below. Hope this helps -Breadcat105
function ITEM:OnEquip(ply, modifications)
if not ply._OldModel then
ply._OldModel = ply:GetModel()
end
timer.Simple(1, function() ply:SetModel(self.Model) end)
end
function ITEM:OnHolster(ply)
if ply._OldModel then
ply:SetModel(ply._OldModel)
end
end
function ITEM:PlayerSetModel(ply)
ply:SetModel(self.Model)
end[/CODE]
Sorry, you need to Log In to post a reply to this thread.