• What do you need help with? V3
    6,419 replies, posted
[QUOTE=Charrax;39639971]I am making a DarkRP server but what I want to do is learn lua by changing it drastically into its own gamemode.[/QUOTE] Don't do that. [QUOTE=Charrax;39639971]Where can I learn (Perferably not the wiki since it doesn't go into detail) how to make a new HUD to replace this disgusting one?[/QUOTE] Easiest way to learn is to just experiment and look at other ideas to get a generic idea of what you want first. Figure out what you want to do, and then work towards that by reading some guides that are scattered around the web & on YouTube.
[QUOTE=EvacX;39630788]Anyone know how to remove the 'Player <name> left the game (Disconnect by user.)' message?[/QUOTE] [lua] hook.Add( "ChatText", "SuppressJoinLeavemes", function( i, name, txt, mtype ) if mtype == "joinleave" then return true end end) [/lua] Client side.
What's the alternative for InVehicle? It doesn't seem to work for me anymore, I heard that it was replaced but I can't seem to find what it was replaced with. Sorry if I'm wrong.
Guys, any idea why after committing 1 changed line this happens? [t]http://i.imgur.com/cPLVYPX.jpg[/t]
[QUOTE=Minteh Fresh;39641909]What's the alternative for InVehicle? It doesn't seem to work for me anymore, I heard that it was replaced but I can't seem to find what it was replaced with. Sorry if I'm wrong.[/QUOTE] [url]http://wiki.garrysmod.com/page/Classes/Player/InVehicle[/url] It's still there.
[QUOTE=theVendetta;39642064][url]http://wiki.garrysmod.com/page/Classes/Player/InVehicle[/url] It's still there.[/QUOTE] I'm trying to call it on LocalPlayer() it's returning nil, :c
[QUOTE=Minteh Fresh;39642085]I'm trying to call it on LocalPlayer() it's returning nil, :c[/QUOTE] Remember LocalPlayer() only works clientside. ;)
[QUOTE=Nak;39642130]Remember LocalPlayer() only works clientside. ;)[/QUOTE] I'm running it on a clientside script.
[QUOTE=Minteh Fresh;39642162]I'm running it on a clientside script.[/QUOTE] What is the code, and what is it returning?
[QUOTE=Robotboy655;39641975]Guys, any idea why after committing 1 changed line this happens? [t]http://i.imgur.com/cPLVYPX.jpg[/t][/QUOTE] Line endings. My guess is you're using a different os to garry. Try switching line endings in your text editor.
[QUOTE=_Undefined;39643176]Line endings. My guess is you're using a different os to garry. Try switching line endings in your text editor.[/QUOTE] That should really be handled by github.
My mind has gone blank. how do we allow players to download materials and models again?
resource.AddFile
Question: I have problem with my fastdl. It show that I am downloading the files but the files are not in garrysmod and I see them error in game. So basically it show that I am downloading them but the files are not saved. I've create a new file called downloadstuff.lua and I put it in lua/autorun/server/ below is what I have inside the file. Any suggestion what could be the problem ? [code] //bangman resource.AddFile("materials/darkrp/ammo.vmt") resource.AddFile("materials/darkrp/ammo.vtf") resource.AddFile("models/bagman.mdl") resource.AddFile("materials/models/bagman/Bagman_4.vmt") resource.AddFile("materials/models/bagman/Bagman_4.vtf") resource.AddFile("materials/models/bagman/Bagman_4.vtf") resource.AddFile("materials/models/bagman/Bagman_bag.vmt") resource.AddFile("materials/models/bagman/Bagman_bag.vtf") resource.AddFile("materials/models/bagman/Bagman_n.vtf") resource.AddFile("materials/models/bagman/Bagman_spider.vmt") resource.AddFile("materials/models/bagman/Bagman_spider.vtf") //assassing creed resource.AddFile("Models/player/assassinsCreed/altair_pmodel.mdl") resource.AddFile("Materials/Models/altaïr/1cfee455.vmt") resource.AddFile("Materials/Models/altaïr/1cfee455.vtf") resource.AddFile("Materials/Models/altaïr/1e37ced2.vmt") resource.AddFile("Materials/Models/altaïr/5c12999c.vtf") resource.AddFile("Materials/Models/altaïr/6bb79473.vmt") resource.AddFile("Materials/Models/altaïr/7a02528f.vtf") resource.AddFile("Materials/Models/altaïr/8f68f4b2.vmt") resource.AddFile("Materials/Models/altaïr/8f68f4b2.vtf") resource.AddFile("Materials/Models/altaïr/137b2d78.vtf") resource.AddFile("Materials/Models/altaïr/61106cfc.vmt") resource.AddFile("Materials/Models/altaïr/61106cfc.vtf") resource.AddFile("Materials/Models/altaïr/61106cfc.vtf") resource.AddFile("Materials/Models/altaïr/92664d83.vmt") resource.AddFile("Materials/Models/altaïr/92664d83.vtf") resource.AddFile("Materials/Models/altaïr/a45b73ef.vmt") resource.AddFile("Materials/Models/altaïr/a45b73ef.vtf") resource.AddFile("Materials/Models/altaïr/bffc6e5f.vmt") resource.AddFile("Materials/Models/altaïr/bffc6e5f.vtf") resource.AddFile("Materials/Models/altaïr/d37bb2e4.vtf") resource.AddFile("Materials/Models/altaïr/e1e01c6e.vmt") resource.AddFile("Materials/Models/altaïr/e1e01c6e.vtf") resource.AddFile("Materials/Models/altaïr/ef11471f.vtf") [/code]
put [lua]if SERVER then[/lua] at the start and put an end at the bottom should work
[QUOTE=gemmono2;39644767]put [lua]if SERVER then[/lua] at the start and put an end at the bottom should work[/QUOTE] Is not working. It still show that I am downloading the files but in game is error and in the files aren't in the gmod folder.
[QUOTE=gemmono2;39644767]put [lua]if SERVER then[/lua] at the start and put an end at the bottom should work[/QUOTE] He said its in autorun/server y u no read ppl [editline]19th February 2013[/editline] [QUOTE=R@Rdeathmatch;39644711]Question: I have problem with my fastdl. It show that I am downloading the files but the files are not in garrysmod and I see them error in game. So basically it show that I am downloading them but the files are not saved. I've create a new file called downloadstuff.lua and I put it in lua/autorun/server/ below is what I have inside the file. Any suggestion what could be the problem ? [code] //bangman resource.AddFile("materials/darkrp/ammo.vmt") resource.AddFile("materials/darkrp/ammo.vtf") resource.AddFile("models/bagman.mdl") resource.AddFile("materials/models/bagman/Bagman_4.vmt") resource.AddFile("materials/models/bagman/Bagman_4.vtf") resource.AddFile("materials/models/bagman/Bagman_4.vtf") resource.AddFile("materials/models/bagman/Bagman_bag.vmt") resource.AddFile("materials/models/bagman/Bagman_bag.vtf") resource.AddFile("materials/models/bagman/Bagman_n.vtf") resource.AddFile("materials/models/bagman/Bagman_spider.vmt") resource.AddFile("materials/models/bagman/Bagman_spider.vtf") //assassing creed resource.AddFile("Models/player/assassinsCreed/altair_pmodel.mdl") resource.AddFile("Materials/Models/altaïr/1cfee455.vmt") resource.AddFile("Materials/Models/altaïr/1cfee455.vtf") resource.AddFile("Materials/Models/altaïr/1e37ced2.vmt") resource.AddFile("Materials/Models/altaïr/5c12999c.vtf") resource.AddFile("Materials/Models/altaïr/6bb79473.vmt") resource.AddFile("Materials/Models/altaïr/7a02528f.vtf") resource.AddFile("Materials/Models/altaïr/8f68f4b2.vmt") resource.AddFile("Materials/Models/altaïr/8f68f4b2.vtf") resource.AddFile("Materials/Models/altaïr/137b2d78.vtf") resource.AddFile("Materials/Models/altaïr/61106cfc.vmt") resource.AddFile("Materials/Models/altaïr/61106cfc.vtf") resource.AddFile("Materials/Models/altaïr/61106cfc.vtf") resource.AddFile("Materials/Models/altaïr/92664d83.vmt") resource.AddFile("Materials/Models/altaïr/92664d83.vtf") resource.AddFile("Materials/Models/altaïr/a45b73ef.vmt") resource.AddFile("Materials/Models/altaïr/a45b73ef.vtf") resource.AddFile("Materials/Models/altaïr/bffc6e5f.vmt") resource.AddFile("Materials/Models/altaïr/bffc6e5f.vtf") resource.AddFile("Materials/Models/altaïr/d37bb2e4.vtf") resource.AddFile("Materials/Models/altaïr/e1e01c6e.vmt") resource.AddFile("Materials/Models/altaïr/e1e01c6e.vtf") resource.AddFile("Materials/Models/altaïr/ef11471f.vtf") [/code][/QUOTE] Shouldnt you be using AddSingleFile for this? And is the path really upercase?
[QUOTE=Benjiko99;39644906]He said its in autorun/server y u no read ppl [editline]19th February 2013[/editline] Shouldnt you be using AddSingleFile for this? And is the path really upercase?[/QUOTE] I used lowercase and it didn't worked. I will try AddSingleFile.
[QUOTE=_Undefined;39643176]Line endings. My guess is you're using a different os to garry. Try switching line endings in your text editor.[/QUOTE] Oh well. The thing is that it was working perfectly before. I still use Windows.
I used AddSingleFile still not working.
path casing needs to match exactly [t]http://anyup.me/v/gmv6[/t]
[QUOTE=JVanover;39640591]Don't do that. Easiest way to learn is to just experiment and look at other ideas to get a generic idea of what you want first. Figure out what you want to do, and then work towards that by reading some guides that are scattered around the web & on YouTube.[/QUOTE] Most are for the old Lua not GMod 13.
I use SourceRSC for fastdl, works like a champion. But I run my webserver on the same server my srcds and other servers are on. (This is pointed at all those fastdl posts....) Also, use Fox-Warrior's addfile generator, it also works like a champion.
Need help with my Segmentation fault problem... [url]http://facepunch.com/showthread.php?t=1248365[/url]
I added night and day to my server and I noticed that there would be a much better atmosphere if there were several street lights around the maps. I figured it would be too much trouble to take my time and make a map, but rather if I could set a models position when the server starts a maybe add a light_spot or any other hammer entity to the map. How would I go about doing doing this?
[QUOTE=Gaming_Unlim;39647800]I added night and day to my server and I noticed that there would be a much better atmosphere if there were several street lights around the maps. I figured it would be too much trouble to take my time and make a map, but rather if I could set a models position when the server starts a maybe add a light_spot or any other hammer entity to the map. How would I go about doing doing this?[/QUOTE] [lua]local light = ents.Create("light_spot")[/lua]
[QUOTE=Hyper Iguana;39648307][lua]local light = ents.Create("light_spot")[/lua][/QUOTE] Thanks, just what I needed!
So what is the proper console command to use when trying to retrieve the tick rate, and how do I get its value using Lua?
What would you use to print a message directly to the server (srcds) console, so players cant see it?
[QUOTE=Charrax;39645887]Most are for the old Lua not GMod 13.[/QUOTE] There's a variety of things for 13's code, and most of the documentation is still relevant unless it's one of the handful of things that were changed; most of the GM13 changes are just syntax changes & some removals/additions to things that already existed. There's plenty of guides on how to fix outdated things. Out of all the things I use in lua, only a small number broke beyond their worth of fixing. Most were simple changes that were fixed easily with a replace-all search.
Sorry, you need to Log In to post a reply to this thread.