• What do you need help with? V4
    7 replies, posted
[img]http://dl.dropbox.com/u/26392940/r1Bnl.png[/img] 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. [b]COOL STUFF TO LOOK AT![/b] [b]General Faqs:[/b] [url]http://www.facepunch.com/threads/868...EAD-THIS-FIRST[/url] [b]HOW TO LUA?:[/b] [url]http://wiki.garrysmod.com/?title=Lua_Tutorial_Series[/url] [b]GLUA WIKI:[/b] [url]http://wiki.garrysmod.com[/url] [b]Previous threads that your probably wont look at:[/b] [URL="http://www.facepunch.com/threads/931152-What-do-you-need-help-with-V1"]Thread 1[/URL] [URL="http://www.facepunch.com/threads/1068418"]Thread 2[/URL] [URL="http://facepunch.com/showthread.php?t=1160598"]Thread 3[/URL] (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
[QUOTE=Banana Lord.;39756078]pretty sure we're not doing a WDYNHW megathread anymore[/QUOTE] too late for that now
[QUOTE=Banana Lord.;39756078]pretty sure we're not doing a WDYNHW megathread anymore[/QUOTE] 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 [URL="http://wiki.garrysmod.com/page/render/Model"]this[/URL]? 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.
Sorry, you need to Log In to post a reply to this thread.