Title / Thread Starter Last Post ByReverse Sort Order Replies Views
Lua scripting
 

solved Getting player IP

Hey, i'm working on this universal ban system for all my servers, ( not just gmod ) I need a way to get a users IP so that when they are banned, I can transfer it into a database and ban them on all my other servers. I understand steamID is more...

18th February 2014
by cocomut Go to last post
1 119
Lua scripting
 

solved Temporary whitelist

Dear community, Today I started to code with Lua, because I want code a temporary whitelist that works from 12:00 to 19:00. I coded this whitelist beause my server team plays all the time TTT and donīt look for the Minecraft server. My little script...

18th February 2014
by miny1997 Go to last post
15 379
Lua scripting
 

solved Custom ViewModel Bob.

First of all, I want to say thank you to the helpful developers here on facepunch for helping me on a custom viewmodel sway. I have a new problem, that I am not quite sure how to take on. I am interested in making a custom weapon bob (the viewmodel...

18th February 2014
by Stormtrooper595 Go to last post
2 151
cpp
 

solved Linux compiled modules not working

Do modules have to be compiled under a certain version of gcc/glibc/binutils? The modules compile fine, but srcds cannot open them. Even a module as simple as the example provided on the gmod wiki ends up with "could not load module library" ldd...

18th February 2014
by KingofBeast Go to last post
0 126
Help
 

How do I a thing change True to False and vice versa with one key?

I want to activate and deactive something but this doesnt seem to work! Here's the code function CanDoTheThing(ply) if ply:KeyDown(IN_USE) then ply.candothing = false end if ply:KeyDown(IN_USE) then ply.candothing= true end end

18th February 2014
by shadowsaints Go to last post
2 158
Help
 

Ulx lua help

How would i go about adding a timer restriction to a command in ulx ?

18th February 2014
by log404 Go to last post
0 107
Lua scripting
 

Lua

In my code, I need to call a method attached to a entity using pcall, so I use this. pcall(ENT:doThings()) This yields an error whenever its attached to something... Any way to get around this?

17th February 2014
by Hydreh Go to last post
2 143
QUESTION
 

DarkRP VIP Job Help

Hi, I tried to use custom checking on my VIP job because of course I want it to be VIP only. When I jon I get no jobs or guns. TEAM_PROTHIEF = AddExtraTeam(" Pro Thief", Color(102, 153, 51, 255), "models/player/combine_super_soldier.mdl", ],...

17th February 2014
by Lolcats Go to last post
1 147
Help
 

solved Scripted entity does not spawn, just a shadow.

AddCSLuaFile() ENT.Name = "Test" function ENT:Initialize() self:SetModel("models/props_lab/crematorcase.mdl") self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) end First entity, I...

17th February 2014
by Nookyava Go to last post
11 218
Help
 

Problem Linking my SQL database with Darkrp

Hello I have been trying to link up mysqldatabase to my server and it doesn't want to work. Also When i try installing the sqloo files to lua/bin they fail to transfer. I get these errors in console. /////////////////////////////////////// // ...

17th February 2014
by puppycheese Go to last post
2 156
Help
 

Pointshop Give Item

Hi, I was just wondering if there was a way with the _Undefined Pointshop that when you buy a single use gun it does not get pulled out but it gets holstered and you have to scroll to it in your items to pull it out and use it. Any help would be really...

17th February 2014
by Nookyava Go to last post
4 82
Help
 

Need help displaying weapon and team

Hello once again. I post here because I am in a bit of a fix. I can't seem to get the team to display on my hud or get the current weapon the player is holding to display...I have an idea of what it would look like in the code but anything I try doesn't...

17th February 2014
by Nookyava Go to last post
4 136
Steam
 

DarkRp Job Modules

Hey I have started making my darkrp server and im adding custom jobs but idk what to put for the models is there like a folder in the server folder that contains the player modules? And please excuse my name I wasn't paying attention and it cut off part...

17th February 2014
by smithy285 Go to last post
1 209
Help
 

solved SWEP:PrimaryAttack() only running serverside?!

Hello. I'm trying to make a variable on the swep (clientside), change when the player PrimaryAttacks. Here's my code: function SWEP:PrimaryAttack() if SERVER then print("server") elseif CLIENT then print("client") end if self.Anims then...

17th February 2014
by sackcreator54 Go to last post
2 80
Help
 

help with old gmod12 antiprop

I am getting an error with constraint.GetAllConstrainedEntities() This used to work great with gmod12. The person that made this for me no longer play on steam anymore. local function AntiCollision(ply, ent) if(ent:IsValid()) then local...

17th February 2014
by gravelhunter Go to last post
8 200
Help
 

resource.AddWorkshop Help

Hi, I just had a simple question. With my file being in lua/autorun/server, how would I make it look? Would it be like this? if SERVER then resource.AddWorkshop( "integer" ), resource.AddWorkshop( "integer" ), resource.AddWorkshop(...

17th February 2014
by LennyPenny Go to last post
5 185
Help
 

solved GetItems() Method for DIconLayout?

With DPanelList you can use a methord called GetItems() to return a table of all of the elements which have been added to it. I was wondering if there was anything like this for DIconLayout? GetItems() doesn't work. Thanks.

17th February 2014
by HappyGhetto Go to last post
0 58
Help
 

Help with Announcement Plugin

Hello, I am new to lua and am just trying out a small announcement plugin for starters. Below is the code I have, however when I use !announce it only says in the console "MCS Semajnad: !announce" and doesn't actually execute anything. My directory setup...

17th February 2014
by Semajnad Go to last post
6 156
Help
 

ttt_rooftops_f2_a1

I cannot find this map anywhere, could someone please direct me to it!

17th February 2014
by Brendon Go to last post
6 168
Work In Progress
 

GeoIP - Virtually instant geolocation ( 2 Last ) This thread has images

libGeoIP Lua binding - Get info about IPs! Download Binary module: http://88.191.111.120/~srcds/modules/gm13/bin/ Uses the GeoIP database GeoLiteCity.dat Uncompess, rename to GeoIP.dat and put to garrysmod/data/GeoIP.dat or orangebox/GeoIP.dat ...

17th February 2014
by Kingpin Go to last post
47 7,865
Lua scripting
 

solved bad argument #1 to 'SendWeaponAnim' (number expected, got nil)

Hi. Quick question. I am making some L4d2 Sweps, but i'm having problems with some of the animations. I decomplied the model i wanted and got a list of animations. $animation "look_down" "c_shotgun_spas_anims\look_down.smd" { fps 30 subtract...

17th February 2014
by buu342 Go to last post
13 266
Help
 

solved How to restrict a job to multiple classes? - DarkRP,

Hi, So I look all over on the internet but nothing seems to be working for me. I want to make a donator job but also include other ranks to use it. This meaning that I dont want people who are just normal admins to access it as I think it defeats the...

17th February 2014
by Minishawsi Go to last post
4 175
Help
 

serverside variables for players

Hi How would I create and access variables for each player, serverside? Thanks

17th February 2014
by selfdestruk1 Go to last post
4 186
Lua scripting
 

dHack, a new p2c smashed by team skidsmasher ( 2 Last ) This thread has images

dHack; A great example of why idiots who can't code shouldn't release pay cheats. http://dhack.hexhosting.com/ It came to our attention that a known skid "Deagler" was attempting to start another GMod p2c (named dHack, how original). After 5 minutes...

17th February 2014
by JonoXD Go to last post
50 3,111
Help
 

Help with pointshop rewards

We have a script in the autorun folder of our server that we use to reward players for kills in ttt unfortunately it causes ragdolls to disappear if the player is killed by the world, how can we fix this? --To be placed in lua/autorun/server/ --...

17th February 2014
by SaintSin6 Go to last post
4 188
Help
 

solved Pointshop Traitor Purchase Problem

Whenever you purchase traitor in the pointshop, it doesn't take away the powerup after the round begins/after it ends. It stays bought. Here's the code I have in addons/pointshop-master/lua/items/powerups/buytraitor.lua. ITEM.Name = 'Traitor'...

17th February 2014
by ZerK Go to last post
4 111
QUESTION
 

Switch Gamemode Automatically From TTT To Prop Hunt

The server i go on just recently added TTT to it. After 10 rounds on Prop Hunt there is a auto vote for switching gamemode and map, but there is no auto vote for TTT. Can i have a script or addon that has auto voting for TTT? Thank you!

17th February 2014
by TheWildTurnip Go to last post
7 208
QUESTION
 

F4 tab

Im in Darkrp and im just wondering if there is a way to have some tabs like the shipment tab invisible to everyone that isnt a job that has a custom shipment like a gun dealer is there a way for example a citizen wont see the shipment tab but if they are...

17th February 2014
by _Jacob Go to last post
3 160
Help
 

Spawning SCars from Dermamenu

I have a function called by a button to spawn some SCars that have turrets and or spinning objects on them. They all work fine when you spawn them from the button, but the turret is usually detached and or the camera is wrong. The turret ends up flying...

17th February 2014
by MGCLegend Go to last post
0 71
Help
 

F1 menu tabs

so i have the damagelogs-master that is seen at this link http://facepunch.com/showthread.php?t=1301766 but what i was wondering is what is the file that contains the code to display it in the f1 menu because i want to change the colors of the headers for...

17th February 2014
by _Jacob Go to last post
8 238
Help
 

Variable not setting?

Hello. I'm working on a swep, and when a function is called, it's set to set a variable, but the problem is, it's not setting. Here's the code: SWEP.Category = "Oracule" SWEP.Author = "VX" SWEP.Purpose = "Deploying ammo in-the-field."...

17th February 2014
by sackcreator54 Go to last post
4 131
Help
 

FastDL Issue?

Okay, I have set up my fastDL and everything is in order, file paths are triple quadruple checked and all are correct, yet it won't download .bzip2 files. Says error downloading, but only those specifically. And then when I put the regular .mdl's etc.,...

17th February 2014
by _Jacob Go to last post
2 61
Lua scripting
 

More SWEP positioning possibility? This thread has images

Greetings. I basically wanna have more options to switch between the view model positions for my SWEPs. What I mean is, just like the following codes do: SWEP.IronSightsPos = Vector (-5.9866, -5.5407, 3.0058) SWEP.IronSightsAng = Vector (0, 0, 0) ...

16th February 2014
by LauScript Go to last post
14 400
Request
 

Seeking a decent v_weapons animator for hire

Hello, I'm currently looking for a v_model animator to completely re-animate three unique weapons I have for me. I'm willing to pay, if the price is right. I'm looking for good crisp animations for these weapons. the weapons are an AA-12, AN-94, and a...

16th February 2014
by code_gs Go to last post
1 132
Help
 

solved Single Weapons Help

Im having troubles with my weapons I have them so that only gun dealers can sell them but when I got in game any job can buy them this is an example of one of my guns AddCustomShipment("FiveSeven", { model =...

16th February 2014
by Jvesche Go to last post
8 178
Help
 

Lottery Help

Im having troubles with makeing lotterys it says that I cant make them when I have them enabled in the files Im not sure whats the problem does anyone know what to do?

16th February 2014
by Jvesche Go to last post
7 193
Stupid
 

Colored Chat Text in TTT

hook.Add("Initialize", "Points.Initialize", function() if !ROLE_INNOCENT then return end local RolePoints = { = { = -10, = 100 }, = { = -50,

16th February 2014
by Butthurt Go to last post
6 310
Help
 

Entity Spawning (Gamemode) Help!

I am trying to spawn an entity from a derma button. I have added console commands to the button and that seems to work fine, however, the serverside will not spawn the entity without an error Here Is my function to spawn it: function SpawnFlak18(ply)...

16th February 2014
by MGCLegend Go to last post
7 77
Help
 

My weapon has 244 ammo in clip on server instead of 500.

And if I try to reload it with 244 ammo, it just loops ( the reload. ) if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end if ( CLIENT ) then

16th February 2014
by Robotboy655 Go to last post
5 140
Help
 

Proper way of creating a spectator

Hi, I've made three teams, one of them are spectators. I'm not quite sure about how I should go around making the spectator team, but I've done this so far: if ply:Team() == 3 then -- Waiting ply:SetModel( "models/player/kleiner.mdl" )...

16th February 2014
by Nookyava Go to last post
1 108