Search found 9 matches
- Mon Nov 11, 2013 5:43 pm
- Forum: Garrysmod
- Topic: TTT- how do I change the default player model?
- Replies: 7
- Views: 12098
Re: TTT- how do I change the default player model?
You posted it, models/player/male_07.mdl
- Mon Nov 11, 2013 5:39 pm
- Forum: Garrysmod
- Topic: TTT- how do I change the default player model?
- Replies: 7
- Views: 12098
Re: TTT- how do I change the default player model?
Change it in the array I posted earlier -- Everyone's model local ttt_playermodels = { Model("models/player/phoenix.mdl"), Model("models/player/arctic.mdl"), Model("models/player/guerilla.mdl"), Model("models/player/leet.mdl") }; You can literally just change ...
- Mon Nov 11, 2013 5:35 pm
- Forum: Garrysmod
- Topic: TTT- how do I change the default player model?
- Replies: 7
- Views: 12098
- Mon Nov 11, 2013 5:00 pm
- Forum: Garrysmod
- Topic: TTT- spawning with weapons
- Replies: 10
- Views: 2980
Re: TTT- spawning with weapons
It's running the variables on a client. Make sure it's in the server autorun, not main autorun folder.
lua/autorun/server/givedeagle.lua
lua/autorun/server/givedeagle.lua
- Mon Nov 11, 2013 4:37 pm
- Forum: Garrysmod
- Topic: TTT- spawning with weapons
- Replies: 10
- Views: 2980
Re: TTT- spawning with weapons
Oh yeah no problem man, I'm waiting for the map to change so a script on my server will update. Can't switch right now since there's 18 people on, I don't think they'd be happy.
Anyway, have fun.
Anyway, have fun.
- Mon Nov 11, 2013 4:30 pm
- Forum: Garrysmod
- Topic: TTT- spawning with weapons
- Replies: 10
- Views: 2980
Re: TTT- spawning with weapons
Just name it whatever, like givedeagle.lua or whatever and place it in the lua/autorun/server folder.
If you have a lua question, the facepunch forums are really good for that.
If you have a lua question, the facepunch forums are really good for that.
- Mon Nov 11, 2013 4:12 pm
- Forum: Garrysmod
- Topic: TTT- spawning with weapons
- Replies: 10
- Views: 2980
Re: TTT- spawning with weapons
local function GiveWeapon() for k,v in pairs( player.GetAll() ) do // Loop through the table of players, where k (key) is the player index and v (value) is the actual entity v:Give( "weapon_zm_grevolver" ) // give them a deagle. yeah, revolver is deagle in ttt end end hook.Add( "TTTP...
- Mon Nov 11, 2013 4:05 pm
- Forum: Garrysmod
- Topic: Trying to add download for sounds
- Replies: 11
- Views: 3529
Re: Trying to add download for sounds
You don't need an if (server) then, since you're already putting it in the autorun server anyway. It'd be if SERVER then, if you're planning on using it outside of the server autorun folder. I use resource.AddFile in mine. Since I use ttt, the resource.lua is already in the gamemode folder and doesn...
- Mon Nov 11, 2013 3:55 pm
- Forum: Garrysmod
- Topic: TTT- how do I change the default player model?
- Replies: 7
- Views: 12098
Re: TTT- how do I change the default player model?
gamemodes/terrortown/gamemode/shared.lua -- Everyone's model local ttt_playermodels = { Model("models/player/phoenix.mdl"), Model("models/player/arctic.mdl"), Model("models/player/guerilla.mdl"), Model("models/player/leet.mdl") }; I was looking in the past as ...