I found a car salesman npc and i modified it but it seems that my modified version and the original, after spawning a car the car doesnt work with VC mod (adds lights, extra seats, etc...)
This is the function where it buys the actual vehicle
[CODE]function SpawnCarCamaro(ply, ent)
if not ply:CanAfford(250000) then
Notify(ply, 1, 4, string.format(LANGUAGE.cant_afford, "car")) return "" else
ply:AddMoney(-250000)
local Cam = ents.Create("prop_vehicle_jeep")
Cam:SetModel("models/tdmcars/69camaro.mdl")
Cam:SetKeyValue("vehiclescript", "scripts/vehicles/tdmcars/69camaro.txt")
Cam:SetPos(table.Random(CamaroSpawn))
Cam.Owner = ply
Cam:Own(ply)
Cam:Spawn()
Cam:Activate()
end
end
concommand.Add("buy_69camaro", SpawnCarCamaro)[/CODE]
I think its not including the lua file for this car that actually adds the seats and lights and stuff.
I've looked around on the wiki and looks the this page
[url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexf4b5.html[/url]
I just dont really know what to do, i dont know if this can help me.
Any help is well appreciated,
Nynex
I would also like some help in this problem. Thanks :/
Sorry, you need to Log In to post a reply to this thread.