Title / Thread Starter Last Post ByReverse Sort Order Replies Views
QUESTION
 

draw.RoundedBox going from left to right instead of right to left?

Hello. I have an issue that's quite difficult to explain. Okay, so let's say you set the draw.roundedbox's width to the player's gun's ammo. Everytime you shoot, it decreases in length, but it decreases from the right, and I want to make it decrease...

3rd November 2013
by EthanTheGreat Go to last post
1 172
Help
 

solved Vehicle Lights and Horns

im needing help and what im trying to do is put some lights on my simple car/TDMCars for base and its unfinshed if you guys can teach me how to make it spawn and position a light for the "F" button then the Horn does not work idk why tho thanks for...

3rd November 2013
by xrayhunter1 Go to last post
0 185
Help
 

Lightsaber Sound and HoldType

I am back again with another lightsaber problem. So, I am trying to get these sounds to work, but they wont load apparently? I am trying for it to make a sound when you pull the lightsaber out and for it to loop a sound. Also, whenever you hold the...

3rd November 2013
by Icecopy Go to last post
0 154
Lua scripting
 

Need a replacement for: self:GetStageTime()

I am trying to port a gamemode into gmod 13, but couldn't find what this GetStageTime() actually does, making it rather hard to figure out how to replace it. Does anyone know an alternative? I did a search on the whole gmod folder and this is where it...

3rd November 2013
by TechAUmNu Go to last post
2 172
Help
 

Issues/Help with 3d2d.

Alright I'm trying to make an entity use 3D2D when players eye trace is looking at an Entity. BUT I cannot create an entity clientside, so...How would I do what my code is trying to do, but in another way where it will actually work? If the code...

3rd November 2013
by pvtpuffball Go to last post
2 196
Help
 

Nlr code help

Well my Nlr code isn't workin PERIOD nothing is happening I might be missing a hook I just don't know function GM:PlayerDeath( victim, weapon, killer ) local deathpos = 0 if victim:IsPlayer() and killer:IsPlayer then if !victim.died then

3rd November 2013
by pvtpuffball Go to last post
3 271
QUESTION
 

solved More derma issues

I'm back from yesterday hoping you kind people can once again help me with my script. I am very novice at lua so I appreciate any help or a step in the right direction. But I am here to learn! I'm currently modifying DarkRP so it has a stats derma...

3rd November 2013
by BassBandit Go to last post
17 623
Request
 

I want to make my prop hunt server attractive by implementing a "shop" ingame

My first step to attaining this goal is by implementing some sort of leveling system, equivalent to the many kinds you can find on Counter Strike Source (Zombie mod for example). After each "kill" as hunter or maintaining alive as prop you get points....

2nd November 2013
by AIX-Who Go to last post
8 584
Help
 

Gmod Database

Is it poss to convert a .sql file to a sv.db? I am moving my gmod server from MySQL back to the local sv.db and I dont want to loose any data. could someone help me or even do this for me if I give you the .sql Thanks

2nd November 2013
by code_gs Go to last post
4 218
Help
 

solved Give an entity some health and take some OnTake Damage

I am trying to give an entity some health and lose some when shot at function ENT:OnTakeDamage(dmg) self:TakePhysicsDamage(dmg); -- React physically when getting shot/blown if(self:Health <= 0) then return; end -- If the...

2nd November 2013
by spikeman14 Go to last post
2 160
Stupid
 

Partially Random Deathmessage

Hi, I'm very new to GLua, and programming in general. I'm trying to have random death messages in chat, when somebody is killed, the problem I am having is that I have no idea how to have the random part appear. Here is the death message part of my...

2nd November 2013
by Gooul Go to last post
4 172
Love
 

Help got some weird box around my models, PIC inside.

Hi as the title says, I joined a random building server and after that i played some in singleplayer and now i have this around the models when i try to move it around and so on. Anyone know how to remove it? http://imgur.com/a/CwBac Thanks, have...

2nd November 2013
by imnottheone Go to last post
0 159
Lua scripting
 

How to get display cars to permanently stay on the map?

I want to a few display cars in the car dealership in my server. I've seen this in many servers/gamemodes so i know its possible but for some reason i cant find how to do it. All of the threads or websites i found were outdated and the code didnt work....

2nd November 2013
by Zacrah Go to last post
22 410
Help
 

Episode 2 mount serverside

I've been scouring the internet for about the past week now looking for some way to do this (mounting hl2:ep2 on a paid server host.) My server host (xenon) claims that there is no possible way to do this at the moment because it is not updated to...

2nd November 2013
by NaRyan Go to last post
3 180
Help
 

solved PO Command Help

So I'm trying to make a command in ULX which will bring up a player's sourcebans ban history on my server. This is what I have so far, but I'm getting some errors. local CATEGORY_NAME = "Utility" function ulx.po( calling_ply , target_plys ) local...

2nd November 2013
by Liam MacKay Go to last post
4 215
QUESTION
 

solved Controlling the speed of a car.

How do I control the speed of prop_vehicle_jeep? Specifically, I'd like to implement a cruise control.

2nd November 2013
by Handsome Matt Go to last post
1 156
Help
 

TTT status not being set to dead when killed by world This thread has images

On my server, there's this new bug where if someone dies by the world (drowning, falling off map, killed by turret) they die, but they can still talk to alive people with text and voice chat and their name is under "Terrorists" in the scoreboard instead...

2nd November 2013
by OzymandiasJ Go to last post
15 439
Help
 

How would I make it so my screen fades to black & white upon health loss?

I'm a developer for a DarkRP server (yeah man i can code all sorts of jobs just give me ur tc admin and ur server will be custom in no time) and I was wondering if it were possible to have a script that makes it so your screen will slowly loose color...

2nd November 2013
by _Kilburn Go to last post
6 292
QUESTION
 

solved Player size and modelling. This thread has images

Hi, I have a question which is either going to be very hard to answer, or very easy to answer. I am in the process of modelling a Russian Kishinev cargo ship for gmod, in 3DS Max. My goal is to have interiors in the bridge, some (few) cabins, the...

2nd November 2013
by AManiac Go to last post
2 177
QUESTION
 

solved Creating an Entity on another "entity"?

Hello. I am making this entity that when broken, creates a prop, and then that prop creates an entity. Although i'm having trouble doing so. Currently i am creating the entity by checking where the player is looking, but thats not the most effective way...

2nd November 2013
by buu342 Go to last post
3 193
Lua scripting
 

Finding current job of player

Hello I need to know how to find a user's job (string) (this is for DarkRP) I am trying ply:Team() but that outputs an integer I need a string, how may I do this? 2nd November 2013 I am concatenating this job, "You cannot pickup this weapon (...

2nd November 2013
by wholegamer Go to last post
3 166
QUESTION
 

How to make owner props stay?

Does anyone know which file manages who's props stay on the server? Thanks.

2nd November 2013
by wholegamer Go to last post
1 189
Lua scripting
 

How do I remove the gamevoter from fretta? This thread has images

Everytime the gamemode changer and I think the map changer gets no vote I get this error. I would like to know how i can remove the gmchanger and prevent the same thing happening with the map changer please.

2nd November 2013
by Augs Go to last post
10 421
Help
 

FastDl not saving files

if (SERVER) then resource.AddFile( "models/player/slow/luigi_gxy.mdl" ) resource.AddFile( "models/player/slow/mario_gxy.mdl" ) resource.AddFile( "materials/models/player/slow/mario_gxy/slow_body.vmt" ) resource.AddFile(...

2nd November 2013
by Christmasham Go to last post
3 173
Help
 

Not Sure How to Title This Problem

Okay, I am working on a radio and creating a small menu for admins so they can add and remove songs easily. I have run into a slight problem with this. I am not getting any lua errors but when I start the game and run the command to open the menu, nothing...

2nd November 2013
by TheEncrypted Go to last post
8 367
Help
 

solved How would I go about opening another derma menu?

Ok, so ive done some code and now im trying to make it to where when i push my "Change Team" button, it will open the F1 derma menu, containing the teams. So in short... You push F4 the main menu opens, then you select "Change Team", it would then open...

2nd November 2013
by carsonj0108 Go to last post
6 357
Help
 

TOOL:LeftClick isn't called (Only on client when multiplayer)

Hi everyone, i was working on a stool, and after finish all the functions and start with the most easy thing that's the entitie creation i got an issue, the stool doesn't shoot! I don't know why! but listen, if a open in multiplayer, it works, just on...

1st November 2013
by gonzalolog Go to last post
0 159
Help
 

Addon limit? DarkRP PRINTNAME

ok so here is my problem... i have 35 addons on my server and when ever i try to add 1 more all my weapons on darkrp goto printname except physics and gravity gun.... it dosent matter what the addon is even a model screws everything any help? THX!

1st November 2013
by Busan1 Go to last post
1 182
Help
 

Traitor Chance

How to increase the chance of becoming traitors. VIP/Admin/Mod...

1st November 2013
by Total Crash Go to last post
1 196
Help
 

resource.AddFile doesn't work in certain cases

(Both the gmod and fastdl server are linux, i've already double checked filenames) When using this (the vtf file exists and it's in the right place on FastDL): resource.AddFile("materials/vgui/ttt_custom/icon_jihad.vmt") Nothing is sent to the...

1st November 2013
by zerothefallen Go to last post
6 294
Stupid
 

solved Throwing grenade on mouse release?

Right now its throwing a grenade which is good, but I'd love to do it on mouse-up instead.

1st November 2013
by Swiftone Go to last post
2 167
Help
 

solved All Tools Say Print Name

Hello, What does it mean when all my tools say printname. For example weapon checker stun stick etc

1st November 2013
by Awesome123 Go to last post
4 232
Lua scripting
 

PlayerSpawn Hook

When I use the PlayerSpawn Hook it takes away all my weapons. I am playing DarkRP. It isn't the code itself, the hook just doesn't work for me. Thanks for the help! Also, can this hook only be called once? If so where should I go to add my code?

1st November 2013
by TheEncrypted Go to last post
2 269
Help
 

Auto running serverside console commands once every map change/startup

What the title says. I need a list of commands to run once every time the server starts up or the map is changed. In this case it's for the Atmos weather mod: atmos_weather_chance 100 atmos_weather_length 3600 atmos_startstorm atmos_dnc_length...

1st November 2013
by Swiftone Go to last post
2 283
Help
 

Prop Hunt server - Can't select all maps on the voting screen

Okay, So i got the map voting to work by changing developer of the game mode prop hunt. This one is made to work with ULX. Check it out here: http://steamcommunity.com/sharedfiles/filedetails/?id=182739498 The voting screen pops up after 10 rounds,...

31st October 2013
by pontehh Go to last post
0 201
Lua scripting
 

solved Retrieving Steam ID from player who pressed use on entity?

Hey! IM making an entity and need the SteamID of whom pressed the button. How would I go about doing this?

31st October 2013
by Chizbang Go to last post
2 184
QUESTION
 

How to define a variable from one function to another?

My question is how do I make a1 global and apply it to the next function, do I simply remove local? If so doesn't it only apply within the function? function a() local a1 = "123" end function b()

31st October 2013
by OzymandiasJ Go to last post
6 351
Help
 

solved Making entity light itself?

Like it is glowing but emits light.

31st October 2013
by Angry pepper Go to last post
4 343
Help
 

Giving Weapons for Specifix Maps

Hi all! I'm kinda a lua noob, but i'm trying to learn. I'm wondering if i could get some help with this script if SERVER then AddCSLuaFile("Pirate.lua") end if game.GetMap()=="ttt_pirate.bsp" then local function giveWeapon(ply) if...

31st October 2013
by rejax Go to last post
15 435
Help
 

Clear http.Fetch cache

So lately i've been playing around with the http.Fetch function on the server side. I have noticed a minor (problem) however, the function caches the pages for a duration of time (i don't know how long) and i am unaware of any function to clear the page...

31st October 2013
by Remscar Go to last post
3 278