Hello.
I'm currently just getting a bunch of different playermodels for my Jailbreak server (Jailbreak 7 by Excl game mode to be precise) and am struggling to allow the playermodels' hands to be viewed in first person mode. They all just show up as Kleiner's hands/the default hands. How can I change this? The playermodel I'm having trouble with at the moment is this: [url]http://steamcommunity.com/sharedfiles/filedetails/?id=351358461[/url]
Inside the actual playermodel file in this path: lua/autorun/tiger.lua takes me to this file with this:
[CODE]
list.Set( "PlayerOptionsModel", "tiger", "models/player/tiger/tiger.mdl" )
player_manager.AddValidModel( "tiger", "models/player/tiger/tiger.mdl" )
player_manager.AddValidHands( "tiger", "models/weapons/tigerarms.mdl", 0, "00000000" )
AddCSLuaFile( "tiger.lua" )
[/CODE]
I don't know what code to do for the pointshop item file in order to make it display the hands... This is what I currently have:
[CODE]
ITEM.Name = 'Tiger'
ITEM.Price = 250
ITEM.Model = 'models/player/tiger/tiger.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
function ITEM:PlayerSetModel(ply)
ply:SetModel(self.Model)
end
[/CODE]
I would very much appreciate some help on how to fix this!
Keep in mind that I am the noobiest of noobs when it comes to lua, so take it easy on me ;)
Thanks in advance!
Sorry, you need to Log In to post a reply to this thread.