function ENT:Initialize() prop_vehicle_jeep?

In trying to make a tow script. The problem i got right now is that i don’t know if you can do that function ENT:Initialize() reads a vehicle script.

The code:

–Placed at lua/entities
AddCSLuaFile( “cl_init.lua” )
AddCSLuaFile( “shared.lua” )
include(‘shared.lua’)
function ENT:Initialize()
self.Entity:SetModel(“models/statetrooper/ram_tow.mdl”)
self.Entity:PhysicsInit(SOLID_VPHYSICS)
self.Entity:SetMoveType(MOVETYPE_VPHYSICS)
self.Entity:SetSolid(SOLID_VPHYSICS)
self.Entity=ents.Create(“prop_vehicle_jeep”)
end
function OyFekOff( ply, ent )
if ent:GetClass() == “entity_spikestrip” then return false end
end
hook.Add(“EntityTakeDamage”, “cnTireDamage”,“PhysgunPickup”,“OYFEKOFF=C”,OyFekOff)
function ENT:StartTouch( ent )
if ent.cnWheelHealth then return end
if (ent:IsVehicle()) then

	end
end

can you put it into [ LUA ] ?

I fixed that i won’t spawn as a vehicle but now i got another problem.
Im trying to allow people to press on the buttonfortow to get health. anyone got any ideas how to do this?

[editline]19th November 2016[/editline]

Changed the code abit.