• What do you need help with? V3
    6,419 replies, posted
[QUOTE=R@Rdeathmatch;39510705]So I should create that outside the HUDPaint, right ??[/QUOTE] you shouldn't really be combining them.
[QUOTE=R@Rdeathmatch;39510705]So I should create that outside the HUDPaint, right ??[/QUOTE] Yes. Unless you, of course, want it to be spammed and a million of AvatarImage to be created and it will erase your Black memory like matter to a Black Hole.
[QUOTE=Matt-;39510725]you shouldn't really be combining them.[/QUOTE] Ok, I understand. I am new at lua and I can't say that I knew that because If I knew I wouldn't make that mistake. (No reason to rate "Dumb") [editline]8th February 2013[/editline] [QUOTE=TheNerdPest14;39510752]Yes. Unless you, of course, want it to be spammed and a million of AvatarImage to be created and it will erase your Black memory like matter to a Black Hole.[/QUOTE] Thanks for the explanation. I added this in to my hud I am working on. Just for practice and is nothing special (I copied the hud from Seaguall) [editline]8th February 2013[/editline] So basically I should make something like this? [LUA] function panels() Avatar = vgui.Create("AvatarImage") Avatar:SetPos(40, ScrH()-150) Avatar:SetSize(128, 128) Avatar:SetPlayer( LocalPlayer(), 64 ) AvatarShouldDraw = 0 end [/LUA] But what I have to add in the hook.Add("","Panels", panels) ??
[QUOTE=R@Rdeathmatch;39510791]Ok, I understand. I am new at lua and I can't say that I knew that because If I knew I wouldn't make that mistake. (No reason to rate "Dumb") [editline]8th February 2013[/editline] Thanks for the explanation. I added this in to my hud I am working on. Just for practice and is nothing special (I copied the hud from Seaguall) [editline]8th February 2013[/editline] So basically I should make something like this? [LUA] function panels() Avatar = vgui.Create("AvatarImage") Avatar:SetPos(40, ScrH()-150) Avatar:SetSize(128, 128) Avatar:SetPlayer( LocalPlayer(), 64 ) AvatarShouldDraw = 0 end [/LUA] But what I have to add in the hook.Add("","Panels", panels) ??[/QUOTE] [lua] hook.Add( "HUDPaint", "AddPanels", function( ... ) // add your stuff hook.Remove( "HUDPaint", "AddPanels" ); end ); [/lua]
Does anybody know how to remove the smoke and sound effects from a physics object when it's scraping along the floor? I can remove the sound effects by setting the physics material to gmod_silent but then I can't remove the smoke.
How would i check in a box on the map if something is inside it ? Cant find anything !
Is there a way to hook into the entity input/output system that you set in hammer? I'm adding an entity to a map via lua that was originally from another mod. Is there a way that I can run code when the entity receives an input? Also, another quick question: is it possible to simply change the class name of a brush entity without deleting the entity and making a new one?
local bail = CreateConVar( "jail_guard_bail", 5000, { FCVAR_SERVER_CAN_EXECUTE, FCVAR_REPLICATED } ) I'm running a listen server with some friends for testing. On my game, on the client, calling GetConVarNumber( "jail_guard_bail" ) works perfectly, but everyone else is getting 0. Any ideas? [B]Edit:[/B]​ I got it. I moved the declaration into shared.
[QUOTE=supersnail11;39513420]Is there a way to hook into the entity input/output system that you set in hammer? I'm adding an entity to a map via lua that was originally from another mod. Is there a way that I can run code when the entity receives an input? Also, another quick question: is it possible to simply change the class name of a brush entity without deleting the entity and making a new one?[/QUOTE] ENT:KeyValue( key, value )
[QUOTE=R@Rdeathmatch;39510791]Ok, I understand. I am new at lua and I can't say that I knew that because If I knew I wouldn't make that mistake. (No reason to rate "Dumb") [editline]8th February 2013[/editline] Thanks for the explanation. I added this in to my hud I am working on. Just for practice and is nothing special (I copied the hud from Seaguall) [editline]8th February 2013[/editline] So basically I should make something like this? [LUA] function panels() Avatar = vgui.Create("AvatarImage") Avatar:SetPos(40, ScrH()-150) Avatar:SetSize(128, 128) Avatar:SetPlayer( LocalPlayer(), 64 ) AvatarShouldDraw = 0 end [/LUA] But what I have to add in the hook.Add("","Panels", panels) ??[/QUOTE] I added a variable to one of my huds, because I used a SpawnIcon in it.
What happened to datastream.lua? On my TTT server, two of my plugin's client autorun LUA files use 'require ("datastream")' in their first lines, but that file is nowhere to be found.
[QUOTE=LilSumac;39518396]What happened to datastream.lua? On my TTT server, two of my plugin's client autorun LUA files use 'require ("datastream")' in their first lines, but that file is nowhere to be found.[/QUOTE] It got removed, and replaced by [url=http://wiki.garrysmod.com/page/net]the net library.[/url]
[QUOTE=Divran;39518489]It got removed, and replaced by [url=http://wiki.garrysmod.com/page/net]the net library.[/url][/QUOTE] How do I put it on my server and fix the errors? Or is it already there? EDIT: Or rather, what do I put in the client LUA files of these addons to get them to work? Take out the 'require ("datastream")'?
Question: So, I want to remove the avatar from the hud and change it with the current player model. So to make that I have to create a table with all the models and to assign to each line a custom texture with that model or there is another way which I believe it is (SpawnIcon) but I can't figure out how to make it. A sort example will be good.
[QUOTE=LilSumac;39518683]How do I put it on my server and fix the errors? Or is it already there? EDIT: Or rather, what do I put in the client LUA files of these addons to get them to work? Take out the 'require ("datastream")'?[/QUOTE] Update the addons that have the errors, because datastream has been gone for over 6 months now. Or be terrible and download datastream, just give it a google search.
How wouldl i use the FindInBox function ? The vectors are where its at but what vectors do i use ? [url]http://wiki.garrysmod.com/page/Libraries/ents/FindInBox[/url]
[QUOTE=Matt-;39519816]Update the addons that have the errors, because datastream has been gone for over 6 months now. Or be terrible and download datastream, just give it a google search.[/QUOTE] Problem is, I'm trying to use the Evolve admin plug-in, but their website is down and I can't seem to find the most current build...
[QUOTE=LilSumac;39519933]Problem is, I'm trying to use the Evolve admin plug-in, but their website is down and I can't seem to find the most current build...[/QUOTE] Evolve is out of date, hasn't been updated since GM13 update it's probably broken. Just use something else.
[QUOTE=Matt-;39520173]Evolve is out of date, hasn't been updated since GM13 update it's probably broken. Just use something else.[/QUOTE] Alright, thanks for the help.
[QUOTE=Matt-;39520173]Evolve is out of date, hasn't been updated since GM13 update it's probably broken. Just use something else.[/QUOTE] False. There is an updated version of evolve somewhere on facepunch. EDIT: Found it [url]http://www.facepunch.com/showthread.php?t=1239304[/url]
Still need help with setting Hold Type.
Question: How to get unique serverside variables for a scripted entity? Meaning, multiple 'copies' of the same entity will have different internal variables. I assumed this would be the default for variables local to the init file but apparently it isn't, so if I change the values in one entity, the values for all the others change as well. How to fix?
[QUOTE=Divran;39520460]False. There is an updated version of evolve somewhere on facepunch. EDIT: Found it [url]http://www.facepunch.com/showthread.php?t=1239304[/url][/QUOTE] [img]http://media.tumblr.com/tumblr_lhysi20D2e1qbgvgt.bmp[/img] [highlight](User was banned for this post ("image macro" - postal))[/highlight]
Does anyone whats called when pointshop menu is opened and closed?
I want to save the "state" of a vehicle, it's position, angles, and velocity. It seemed simple enough, I managed to save position, and angle no worries. The problem comes with restoring the velocity, when I do AirBoat:SetVelocity(velocity), it doesn't do anything, I think it might be something to do with it's using an engine, so I'm wondering how I reference the engine, so I can save it's RPM etc, then restore it?
I'm working on a map for Garry's Mod, and I want to have it so when a player touches a trigger it will either shrink or enlarge the player via lua_run. Could anyone tell me what the script would be to do this, or would this not be feasible? I know nothing of LUA.
[QUOTE=Warriorccc0;39524133]I'm working on a map for Garry's Mod, and I want to have it so when a player touches a trigger it will either shrink or enlarge the player via lua_run. Could anyone tell me what the script would be to do this, or would this not be feasible? I know nothing of LUA.[/QUOTE] I don't think you can do that. Even if you could, it would leave the biggest gap to exploits.
[QUOTE=Hyper Iguana;39524245]I don't think you can do that. Even if you could, it would leave the biggest gap to exploits.[/QUOTE] I remember there being a stool somewhere that resized the player. If that could be converted to gmod 13, it's possible to interface with the map using the lua_run entity. You'd need to distribute some Lua scripts with the map though. It's certainly possible.
[QUOTE=LilSumac;39522923][img]http://media.tumblr.com/tumblr_lhysi20D2e1qbgvgt.bmp[/img][/QUOTE] Don't use image macros on Facepunch; it's a bannable offense if you get caught. [QUOTE=R@Rdeathmatch;39519079]Question: So, I want to remove the avatar from the hud and change it with the current player model. So to make that I have to create a table with all the models and to assign to each line a custom texture with that model or there is another way which I believe it is (SpawnIcon) but I can't figure out how to make it. A sort example will be good.[/QUOTE] Just use the spawnicons of the models you use; it would save space & time.
I Want to script a little bit kinda of plugin like SmartSnap (Work in any server) in Menu. the Lua Tut on the Wikia shut down or something like that and i cant see it. Alot of thanks to anyone who will answer me :) (Sorry if i got bad english and you need read it alot of times to understand :X)
Sorry, you need to Log In to post a reply to this thread.