im needing help and what im trying to do is put some lights on my simple car/TDMCars for base
and its unfinshed if you guys can teach me how to make it spawn and position a light for the "F" button
then the Horn does not work idk why tho thanks for reading! :D
[code]
local V = {
Name = "Chevrolet Camaro SS 69",
Class = "prop_vehicle_jeep",
Category = "TDM Cars",
Author = "TheDanishMaster, freemmaann, Turn 10",
Information = "A drivable Chevrolet Camaro SS 69 by TheDanishMaster",
Model = "models/tdmcars/69camaro.mdl",
//Vehicle Controller
Passangers = { //Can be an infinite amount of seats, Pos and ExitPos can be a simple Vector() or an attachment name, other options are self explanatory.
{Pos = Vector(16.5, 6, 26), Ang = Angle(0, 0, 8)},
{Pos = Vector(15, -24, 27), Ang = Angle(0, 0, 8)},
{Pos = Vector(-15, -24, 2), Ang = Angle(0,0,8)},
},
VC_Horn = {Sound = "vehicles/vc_horn_light.wav", Pitch = 100, Looping = false}, //Horn sound the car will use.
KeyValues = {
vehiclescript = "scripts/vehicles/TDMCars/69camaro.txt"
}
}
if Client then
local function carstuff(player,key)
if player:InVehicle() then
if player:KeyPressed( KEY_F ) & player:InVehicle() then
end
if player:KeyPressed( KEY_H ) & player:InVehicle() then
vehicle:EmitSound( "vehicles/vc_horn_light", 100, 100 )
end
end
end
end
list.Set("Vehicles", "69camarotdm", V)
[/code]
Sorry, you need to Log In to post a reply to this thread.