What do you need help with? V4

http://dl.dropbox.com/u/26392940/r1Bnl.png

Lua questions that don’t deserve their own thread go here.
This means things like:
How to add jobs in DarkRP,
Where to find PERP,
How to shoot ponies out of a gun.
and if your IQ is above 30, then things like why vehicles aren’t working on Linux servers.

COOL STUFF TO LOOK AT!
General Faqs: http://www.facepunch.com/threads/868...EAD-THIS-FIRST
HOW TO LUA?: http://wiki.garrysmod.com/?title=Lua_Tutorial_Series
GLUA WIKI: http://wiki.garrysmod.com

Previous threads that your probably wont look at:
Thread 1
Thread 2
Thread 3

(Credit to Remscar)

Chairs are not working with the EntityTakeDamage hook for me? They seem to work finder the player in the chair when I do this
[lua]
for k,v in pairs(ents.GetAll()) do if v:IsVehicle() then
print(v:GetDriver())
end
end
[/lua]

But when I do this it works with people in vehicles(prop_vehicle_jeep) but not anyone in a chair(prop_vehicle_prisoner_pod)?
[lua]
hook.Add(“EntityTakeDamage”, “DriverDamage”, function( target, dmginfo )
if target:IsVehicle() && IsValid(target:GetDriver()) then
print(“You shot a guy in a vehicle”)
end
end)
[/lua]

Any help would be appreciated!

pretty sure we’re not doing a WDYNHW megathread anymore

too late for that now

I don’t want to make an entire thread everytime I have a question

Having some trouble with creating a gamemode. Trying to do a custom SWEP, but it apparently doesn’t exist to be given to a player when I try to give it to them on spawn. If the weapon is in the gamemodename/entities/weapons folder, and the weapon’s folder is “swep_lasergun”, do I need to do anything more than Give() it to the player?

Does anybody know how to use this?
The documentation isn’t that clear about the table… “table settings This wan”

Please make a thread if you need help instead of using a single thread. That’s what this whole forum is for.