• Problems That Don't Need Their Own Thread v3.0
    5,003 replies, posted
[QUOTE=skittles9823;49443521]Okay so I think I found the correct place to insert [CODE]string.gsub( "", "Butterfly Knife", "CS:GO Knife" )[/CODE] But I dont know how to implement it as its using this: [CODE] local wep = rag.dmgwep or ""[/CODE] and further down, this: [CODE] local wep = util.WeaponFromDamage(dmginfo) rag.dmgwep = IsValid(wep) and wep:GetClass() or ""[/CODE] What should I do?[/QUOTE] Still nothing?
How to make teleporter that when user comes to area and then teleports to other area. I know how to make basic teleport, not the one below. [code] function ( client ) client:SetPos( Vector(-6000,8000,7600) ) end [/code] I'm using [URL="https://github.com/Chessnut/NutScript/"]NutScript[/URL].
[QUOTE=MPan1;49449158]I think you want [URL="https://wiki.garrysmod.com/page/Category:RichText"]RichText[/URL]. My question: Is there an alternative to [URL="http://wiki.garrysmod.com/page/Panel/Paste"]Panel:Paste[/URL] that ACTUALLY WORKS? And, how can you remove the selected text from a panel using Lua rather than user input?[/QUOTE] Do you know of any way to add dropshadows to richtext?
[QUOTE=MPan1;49449158] My question: Is there an alternative to [URL="http://wiki.garrysmod.com/page/Panel/Paste"]Panel:Paste[/URL] that ACTUALLY WORKS? [/QUOTE] Considering [quote] [b]Note: Due to privacy concerns, this function has been disabled.[/b] [/quote] I don't think there will be.
Working one: sorry for messy code [code] hook.Add("KeyPress", "door_1_out", function(client, key) local vCenter = Vector(-7790.91,8158.15,7500.00) // Center position of doors local boxSize = Vector(150,500,500) // Door size local destination = Vector(-9726.86,13521.77,3372) // Destination position local corner1 = vCenter-Vector(boxSize.x,boxSize.y, 0) local corner2 = vCenter+boxSize if (key == IN_USE) and (client:GetPos():WithinAABox(corner1, corner2)) then client:SetPos(destination) end end) [/code] [editline]4th January 2016[/editline] [QUOTE=robinkooli;49449573]-CODE-[/B][/QUOTE] How to make this on table so I don't need to redo it every time I make multiple teleports?
My console is spamming : Too many popups! Rendering will be bad! Also how could i port a TTT weapon over to Deathrun
I think I figured it out [CODE] for k,v in pairs(ply:GetWeapons()) do if tostring(v.Kind) == "3" then ply:DropWeapon( v ) end end[/CODE] v.Kind is apparently neither a int or a string (it was telling me it was a string tho???), so it wasn't working before, converting to a string fixed it. This is probably incredibly improper but it seems to be working
I need some help changing the world model of an SWEP When i Use [CODE]self.WorldModel = "Model.mdl"[/CODE] The model will quickly cycle from the original model and the new one assigned to it So i thought i would assign the SWEP.WorldModel by a variable [CODE]local worldmod = "models/weapons/w_crowbar.mdl" SWEP.WorldModel = worldmod[/CODE] which does assign it to what I want, Then change it in a function [CODE]worldmod = "Model.mdl"[/CODE] But this results in nothing changing, I am very new to LUA and i'm probably messing up due to my function that is changing worldmod not being able to access it. I am probably declaring a new variable...
[QUOTE=Crispyzombie;49455701]I need some help changing the view model of an SWEP[/QUOTE] You say view model, but you're editing the [b]world[/b] model. Try SWEP.ViewModel
[QUOTE=Z0mb1n3;49455787]You say view model, but you're editing the [b]world[/b] model. Try SWEP.ViewModel[/QUOTE] My bad, I meant Worldmodel
Edit: Figured it out
Does anyone know if it's possible to use custom fonts in HTML panels? Or am I limited to the basic font-families
I'm using table.ToString with its formatter but for some reason it's not recognizing tabs? [T]http://i.imgur.com/G6II5xW.jpg[/T]
[QUOTE=solid_jake;49458168]Does anyone know if it's possible to use custom fonts in HTML panels? Or am I limited to the basic font-families[/QUOTE] This ([url]www.google.com/fonts[/url]) might come in handy for you. I prefer to use @import in the CSS. [editline]5th January 2016[/editline] [QUOTE=Aeternal;49458519]I'm using table.ToString with its formatter but for some reason it's not recognizing tabs? [T]http://i.imgur.com/G6II5xW.jpg[/T][/QUOTE] DLabels are a bit shit when it comes to tabs and new lines. I would use a HTML panel. With HTML panels you could use a library to add syntax highlighting to that, too.
Are .otf fonts not recognized by garrysmod? I'm using a font that doesn't seem to want to load in.
[QUOTE=Z0mb1n3;49461971]Are .otf fonts not recognized by garrysmod? I'm using a font that doesn't seem to want to load in.[/QUOTE] How are you loading it? Have you tried converting it to TTF?
[QUOTE=BillyOnWiiU;49462148]How are you loading it? Have you tried converting it to TTF?[/QUOTE] TTF seems to work. Maybe I should put that on the wiki...
I need help finding a.good way to make a function to return a constant flow of different shades of a color, I was thinking constantly adding a number to each rgb of a given color then to start subtracting the number once reaching a certain amount below the given color, and so forth, but I'm not sure how I would do this (this would be for use in a scoreboard so it would constantly change with it), any ideas, am I just bot seeing a simple solution?
Two things: How would I "lock" an image into place over another image on the HUD? (i.e when the image is resized due to res how would I make the other image stay in place?) Rather than use DLabel within DScrollPanel what else could I use since I'm trying to pull a table and have it actually look decent? I tried using table.ToString's formatter but it would not tab correctly and leave small little [I]NULL[/I] symbols. Edit: I have tried using the HTML Panel but the fonts all screwy (Bolded and not tabbed or spaced)
What was the console command to list addons mounted server->client?
[QUOTE=MuteTM;49465203]What was the console command to list addons mounted server->client?[/QUOTE] datapack_paths?
-snip-
[QUOTE=skittles9823;49443521]Okay so I think I found the correct place to insert [CODE]string.gsub( "", "Butterfly Knife", "CS:GO Knife" )[/CODE] But I dont know how to implement it as its using this: [CODE] local wep = rag.dmgwep or ""[/CODE] and further down, this: [CODE] local wep = util.WeaponFromDamage(dmginfo) rag.dmgwep = IsValid(wep) and wep:GetClass() or ""[/CODE] What should I do?[/QUOTE] Bump.
Is it possible to get the height of a map?
[QUOTE=Aeternal;49464321]Two things: How would I "lock" an image into place over another image on the HUD? (i.e when the image is resized due to res how would I make the other image stay in place?) Rather than use DLabel within DScrollPanel what else could I use since I'm trying to pull a table and have it actually look decent? I tried using table.ToString's formatter but it would not tab correctly and leave small little [I]NULL[/I] symbols. Edit: I have tried using the HTML Panel but the fonts all screwy (Bolded and not tabbed or spaced)[/QUOTE] Awesiumium can't render transparent websites properly. Apply [code]body,html{background-color: #fff}[/code] to fix the text rendering. Also, in HTML new lines don't actually create newlines. The <br> tag does. However, a CSS Rule can fix that for you. Full html: [code]<style> body,html { background-color: #fff; width: 100%; height: 100%; white-space: pre-line; } </style>[/code]
How does entity instance variable saving work? I declare this in the player file: [code]_R.Player.m_iShotsFired = 0[/code] And in the weapon file: [code]print( pPlayer.m_iShotsFired ) pPlayer.m_iShotsFired = pPlayer.m_iShotsFired + 1 print( pPlayer.m_iShotsFired )[/code] Both print 0.
[QUOTE=code_gs;49466919]How does entity instance variable saving work? I declare this in the player file: [code]_R.Player.m_iShotsFired = 0[/code] And in the weapon file: [code]print( pPlayer.m_iShotsFired ) pPlayer.m_iShotsFired = pPlayer.m_iShotsFired + 1 print( pPlayer.m_iShotsFired )[/code] Both print 0.[/QUOTE] The metatable is checked first.
[QUOTE=Willox;49466934]The metatable is checked first.[/QUOTE] Thanks; weird behaviour in my opinion.
I'm using a custom font Here it is at size 47: [img]http://i.imgur.com/splg1qW.png[/img] Here it is at size 20: [img]http://i.imgur.com/F4179WV.png[/img] Does anyone know why it gets worse looking/bits get cut off when smaller? I'm assuming I can't do anything about it but I thought I'd ask anyway - Roboto's S' also seem to get slightly cut off too ):
Im using Mr.Gash's Deathrun gamemode, How do i change the max BHop speed from 500 to 1500
Sorry, you need to Log In to post a reply to this thread.