HUD
Functions

Vehicle: can Attach Trailer

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

Used in: VCMod Main addon.

Shared Entity Vehicle:VC_canAttachTrailer(Entity trl, Entity trk)

Arguments

1. Entity trl; Trailer
The trailer entity.

2. Entity trk; Truck
The truck entity.

Returns

1. Boolean Can a trailer be attached?

Example

// Do not allow any trailer to be connected
hook.Add("VC_canAttachTrailer", "VC_disableAllTrailerAttach", function(trl, trk)
	return false;
	// 	return true
end)
Page modified:
...2020-02-17 08:49:35