HUD
Functions

Vehicle: is Trailer Supported

Allows us to check if this vehicle is capible to have trailers attached to it.

Used in: VCMod Main addon.

Shared Entity Vehicle:VC_isTrailerSupported()

Returns

1. Boolean Can a trailer be attached?

Example

// Do not allow damage to entities that can have trailers attached to them (trucks most of the time)
hook.Add("EntityTakeDamage", "VC_noDamageToTrucks", function(target, dmginfo)
	if target:VC_isTrailerSupported() then
		return true
	end
end)
Page modified:
...2019-02-10 23:12:51