• What do you need help with? V3
    6,419 replies, posted
[QUOTE=Vilusia;38956681]...[/QUOTE] Make sure you copy all of the content into your server's root materials/models/sounds/maps folders as that is where the fastdl supplies files from.
[QUOTE=Willox;38957039]Make sure you copy all of the content into your server's root materials/models/sounds/maps folders as that is where the fastdl supplies files from.[/QUOTE] the server doesn't serve them, the webserver does (unless that's what you meant)
[QUOTE=Banana Lord.;38957075]the server doesn't serve them, the webserver does (unless that's what you meant)[/QUOTE] They're served directly from there with Xenon afaik (obviously with a web server) Lemme rephrase: Xenon runs a [b]web[/b]server for sv_downloadurl that supplies files from the [b]game[/b]server's root materials/models/sounds/maps directories.
[QUOTE=Disseminate;38957006]../gamemodes/gamemodes/stalker/content/models/ isn't a valid directory. resource.AddFile has to have an argument in the form of models/. materials/. etc.[/QUOTE] What would be the correct directory? Also @Willox I did do that as well.
Change GM to GAMEMODE, GAMEMODE.Path should be GAMEMODE.FolderName, You need to remove the ../ part and add a second argument which is "GAME"
[QUOTE=Drakehawke;38933225]You can do all this with DTextEntry: [lua] self.TextEntry = vgui.Create( "DTextEntry", self ) self.TextEntry:SetFont( "SRH_HUD_CHAT" ) self.TextEntry:SetText( "" ) self.TextEntry.Paint = function() if self.ChatOpen then draw.RoundedBox( 4, 0, 0, self.TextEntry:GetWide(), self.TextEntry:GetTall(), self.Colors.Black ) draw.RoundedBox( 4, 2, 2, self.TextEntry:GetWide() - 4, self.TextEntry:GetTall() - 4, self.Colors.White ) self.TextEntry:DrawTextEntryText( self.Colors.Black, self.Colors.TextHighlight, self.Colors.Black ) end end [/lua] [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index7382.html[/url] If you don't want the hassle of overriding the paint function, DTextEntry:SetTextColor, DTextEntry:SetHightlightColor and DTextEntry:SetCursorColor work just as well.[/QUOTE] Being the slowpoke I am, I need to clarify. AFAIK You can't have multiple fonts/colors in a single DTextEntry, and this is what I want - sort of like a chatbox that can multicolor. Unless I'm missing something out there, I haven't been able to get DTextEntry to behave that way, because SetTextColor sets the color of the entire text. :(
Is it possible to have a message sent to the player the same way that this works: [code] ply:PrintMessage(HUD_PRINTTALK, "Hello" )[/code] But with color and without the need of a custom chat?
[QUOTE=Willox;38957086]They're served directly from there with Xenon afaik (obviously with a web server) Lemme rephrase: Xenon runs a [b]web[/b]server for sv_downloadurl that supplies files from the [b]game[/b]server's root materials/models/sounds/maps directories.[/QUOTE] oh okay, I gotcha, my bad
[QUOTE=Insomnia Array;38957767]Being the slowpoke I am, I need to clarify. AFAIK You can't have multiple fonts/colors in a single DTextEntry, and this is what I want - sort of like a chatbox that can multicolor. Unless I'm missing something out there, I haven't been able to get DTextEntry to behave that way, because SetTextColor sets the color of the entire text. :([/QUOTE] Overwrite the drawing stuff for a DTextEntry?
[QUOTE=dj_night;38958042]Is it possible to have a message sent to the player the same way that this works: [code] ply:PrintMessage(HUD_PRINTTALK, "Hello" )[/code] But with color and without the need of a custom chat?[/QUOTE] Yes, via chat.AddText()
Getting this error from my gamemode [code] [ERROR] lua/autorun/server/bts_engine.lua:26: bad argument #2 to 'Exists' (string expected, got no value) 1. Exists - [C]:-1 2. Load - lua/autorun/server/bts_engine.lua:26 3. v - lua/autorun/server/bts.lua:27 4. unknown - lua/includes/modules/hook.lua:82 [/code] Line [lua] if file.Exists( id ) then return tonumber( file.Read(id) ) end [/lua] I know file.Exists should be [code]file.Exists(“file”, “DATA”)[/code] not [code]file.Exists(“file”)[/code] But how do I fix [code]if file.Exists( id ) then[/code] ?
You answered your own question... [lua]if file.Exists( id, "DATA" ) then[/lua]
[QUOTE=my_hat_stinks;38959043]You answered your own question... [lua]if file.Exists( id, "DATA" ) then[/lua][/QUOTE] AFK, just going to smash my head against a wall. Cheers :P
I've tried my old Electric C4 script, but SetAngles and GetEyeTrace doesn't seem to work as it worked in the past, can anyone tell me a working way to set ents angles so it's always facing the other side than the thing it's placed on is ?
How can I use CSS weapon models in gmod 13?
[QUOTE=chonks;38960900]How can I use CSS weapon models in gmod 13?[/QUOTE] Just type models path ?
[QUOTE=Netheous;38960955]Just type models path ?[/QUOTE] I have for example, "models/weapons/v_knife_t.mdl", as my path for the knife but in the game I only get the error model. The same is the case with sounds. These file paths were working in gmod 12. I have css mounted so I don't think that's the problem.
[QUOTE=chonks;38961062]I have for example, "models/weapons/v_knife_t.mdl", as my path for the knife but in the game I only get the error model. The same is the case with sounds. These file paths were working in gmod 12. I have css mounted so I don't think that's the problem.[/QUOTE] Are you using these models for SWEPs or SENTs ?
[lua]hook.Add( "PlayerConnect", "playerconnect", function(ply) if ply:IsUserGroup("moderator") then PrintMessage( HUD_PRINTTALK, Color(255,35,53)"[Moderator]" ply:GetName() .. " ( " ..ply:SteamID().." ) has joined the party!")[/lua] [ERROR] lua/autorun/joinmessage.lua:3: ')' expected near 'ply' 1. unknown - lua/autorun/joinmessage.lua:0 I have no idea why this isn't working.
You can't pass arguments like that. PrintMessage also doesn't accept colors.
[QUOTE=Chessnut;38964496]You can't pass arguments like that. PrintMessage also doesn't accept colors.[/QUOTE] Oh oops, I meant to do it in the chatbox. How would you do it?
chat.AddText, which is client side so you would need a net message.
your commas are all messed up too chat.AddText(Color(255,35,53), "[Moderator]"..ply:GetName().." ( " ..ply:SteamID().." ) has joined the party!")
I just want the color to go on the [Moderator]
[QUOTE=CaptainFab;38964959]I just want the color to go on the [Moderator][/QUOTE] local NAME = ply:GetName() local ID = ply:SteamID() chat.AddText(Color(255,35,53,255),"[Moderator] ",Color(240,240,240,255),NAME.." ( "..ID.." ) has joined the joj foundation")
[QUOTE=Magenta;38965068]local NAME = ply:GetName() local ID = ply:SteamID() chat.AddText(Color(255,35,53,255),"[Moderator] ",Color(240,240,240,255),NAME.." ( "..ID.." ) has joined the joj foundation")[/QUOTE] Thanks for the help. I have another problem though. [lua]function CustomChat_Checker(ply, text, teamonly) local group = ply:GetUserGroup() local color = ranks[group] local txtcheck = string.sub(text,1,1) if txtcheck == "/" then return text else return "", CustomChat_ChatMessage(ply, text, "["..string.upper(string.sub(group,1,1))..string.sub(group,2).."]", color.r, color.g, color.b) end end[/lua] On my TTT server, this allows people to talk while dead. How could I make it check if the player is dead before applying the Name Tag?
[QUOTE=CaptainFab;38965210]Thanks for the help. I have another problem though. [lua]function CustomChat_Checker(ply, text, teamonly) local group = ply:GetUserGroup() local color = ranks[group] local txtcheck = string.sub(text,1,1) if txtcheck == "/" then return text else return "", CustomChat_ChatMessage(ply, text, "["..string.upper(string.sub(group,1,1))..string.sub(group,2).."]", color.r, color.g, color.b) end end[/lua] On my TTT server, this allows people to talk while dead. How could I make it check if the player is dead before applying the Name Tag?[/QUOTE] local ISALIVE = (ply:Health() <= 0 or not ply:Alive()) if not ISALIVE then print("I AM DED") end
Hey guys. Does anyone know how to make a HUD gradient, say a rectangle or text. One that fades out to 100% opacity. Also does anyone know how to make a clock that can display the time on the HUD that will work with Fozer's daytime script?
[QUOTE=Magenta;38965338]local ISALIVE = (ply:Health() <= 0 or not ply:Alive()) if not ISALIVE then print("I AM DED") end[/QUOTE] I want to make it so they can still type in team chat.
Need some help on finding something. I am looking for a list of what things do. For example: sql.Begin i need a list of these--->sql.<---- and what they do. Thanks =) Im having a hell of a time looking for one. I already found this one [url]http://wiki.garrysmod.com/page/Libraries[/url] i just need one with more of them.
Sorry, you need to Log In to post a reply to this thread.