Garry's Mod

Garry's Mod

[SRD] VAZ [w/ physics damage]
 This topic has been pinned, so it's probably important
Jabka 7 Jan, 2018 @ 7:17am
[DarkRP] Template for car parts.
DarkRP.createEntity("Display name how you want it", { ent = "prop_physics", model = "PATHTOMODEL", price = 1000, // Price max = 3, cmd = "command", spawn = function(ply, tr, tblent) local ent = ents.Create("prop_physics") ent:SetModel(tblent.model) ent:SetPos(tr.HitPos) ent:Spawn() ent:CPPISetOwner(ply) return ent end, })
Change all the needed fields if needed.