• Help!!!! TDMCars + Npc Car dealer
    3 replies, posted
Hey guys i'm new to so if im missing something just tell me. I was wondering if it's possible to make TDMCARS world props so people can't move them just use them,since in my server when the car dealer spawns them,the owner of the car can use his/her physics gun and move it around and prop/car kill with it.I find it very annoying so if you know how to fix it please help,I will try and put all the information you need.Thanks!Also Im not sure if it's the npc car dealer or the tdm cars,please help!!!!!!!!
Look on the prop protection menu on q menu I'm pretty sure there's an option to disallow pickup of certain props. [editline]2nd July 2013[/editline] Or you can do this the LUA side [QUOTE=goosey;40923032]It's quite simple, here take a look at this: [lua]local function NoPhysgunCars(ply,ent) -- making the function if ent:IsVehicle() then -- checking the entity you're trying to pick up is a vehicle or not return false -- then saying, if it is, don't allow it end end hook.Add("PhysgunPickup", "NoPhysgunCars", NoPhysgunCars) -- then telling it to run this every time someone tries to pick something up.[/lua] or if you want to allow admins only to pick it up, try this: [lua]local function NoPhysgunCars(ply,ent) if !ply:IsSuperAdmin() then if ent:IsVehicle() then return false end end end hook.Add("PhysgunPickup", "NoPhysgunCars", NoPhysgunCars)[/lua][/QUOTE]
[QUOTE=bluemist;41271542]Look on the prop protection menu on q menu I'm pretty sure there's an option to disallow pickup of certain props. [editline]2nd July 2013[/editline] Or you can do this the LUA side[/QUOTE] Okay well I want to do the 2nd lua way,where would I add that?
Place it in init.lua
Sorry, you need to Log In to post a reply to this thread.