HUD
Functions

Vehicle: is Trailer

Allows us to check if this vehicle is a trailer or not.

Used in: VCMod Main addon.

Shared Entity Vehicle:VC_isTrailer()

Returns

1. Boolean Is this a trailer or not.

Example

// Do not allow damage to trailers
hook.Add("EntityTakeDamage", "VC_noDamageToTrailers", function(target, dmginfo)
	if target:VC_isTrailer() then
		return true
	end
end)
Page modified:
...2019-02-10 23:03:29