PhysicsSimulate Hook Overiding

Hello, how would I set the hook for OnTakeDamage on a vehicle? I have tried it this way but it does not work:



local meta = FindMetaTable("Vehicle")

function meta:OnTakeDamage(dmg)
	print("Damage Taken")
end

I need to do it on the vehicle, not the gamemode hook version.
Thanks (Tried to fix title but will not changed)

You can’t do that for non-Lua entities. Use the EntityTakeDamage hook.