I'm trying to add player models to my TTT server and I'm having a really hard time. They show up fine for me, but everyone else either sees giant errors or just the default T model. I have fast dl and i've added them to the workshop.lua. I know this has probably been asked a lot around here, I would really appreciate any help. I've tried about everything i can think of and nothing seems to work.
Harley Quinn Player Model lua
[CODE]player_manager.AddValidModel( "Harley Quinn", "Models/jessev92/harley_quinn_aa_ply.mdl" )
list.Set( "PlayerOptionsModel", "Harley Quinn", "Models/jessev92/harley_quinn_aa_ply.mdl" )
player_manager.AddValidHands( "Harley Quinn", "models/jessev92/weapons/arms/harley_quinn.mdl", 0, "00000000" )
if (SERVER) then
player_manager.AddValidModel( "Harley Quinn", "addons/Harley Quinn Player Model/models/jessev92/harley_quinn_aa_ply.mdl" )
AddCSLuaFile( "addons/Harley Quinn Player Model/lua/autorun/harleyquinn.lua" )
end
list.Set( "PlayerOptionsModel", "Harley Quinn", "addons/Harley Quinn Player Model/models/jessev92/harley_quinn_aa_ply.mdl" )
--// File generated by F0x's Resources Generator 3.0.0 \\--
if ( SERVER ) then
resource.AddFile ( "harley_quinn_aa_ply.mdl" )
resource.AddFile ( "weapons/arms/harley_quinn.mdl" )
resource.AddFile ( "harley_quinn_aa_ply.dx80.vtx" )
resource.AddFile ( "harley_quinn_aa_ply.dx90.vtx" )
resource.AddFile ( "harley_quinn_aa_ply.phy" )
resource.AddFile ( "harley_quinn_aa_ply.sw.vtx" )
resource.AddFile ( "harley_quinn_aa_ply.vvd" )
[/CODE]
pointshop lua
[CODE]ITEM.Name = 'Harley Quinn'
ITEM.Price = 100000
ITEM.Model = 'C:/Users/Kupo/Desktop/Server/content/garrysmod/addons/Harley Quinn Player Model/models/jessev92/harley_quinn_aa_ply.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]
[highlight](User was banned for this post ("Missed forum description - See Developer Discussion" - NiandraLades))[/highlight]
resource.AddFile have to be fed subfolders. models/etc.mdl, materials/etc.model. You're also missing an end after your serverside if statement. Lastly, ITEM.Model is fed a fath relative from models/, not C:/
Sorry, you need to Log In to post a reply to this thread.