Trailer Feet

Summary

The trailer feet controller is used to automatically deploy a trailer’s jack when it is disconnected, and retract it is connected.


File Info

Filename trailerFeet.lua
Path /lua/vehicle/controller/trailerFeet.lua
Type Auxiliary
Usage type Multiple

JBeam Properties

string
type
feet
default
The name electrics that will be used to trigger feet extension.
number
type
1
default
Electric value when the trailer is attached.
number
type
0
default
Electric value when the trailer is detached.
number
type
0
default
Initial electric value when spawning the trailer.


Public Functions

Function name
Parameters
Description
Function name
onCouplerDetached
Parameters
nodeId, obj2id, obj2nodeId
Description
Activates when the coupler gets detached.
Function name
onCouplerAttached
Parameters
nodeId, obj2id, obj2nodeId
Description
Activates when the coupler gets attached.

Example Usage

"controller": [
    ["fileName"],
    ["trailerFeet"],
],

Last modified: January 22, 2022

Any further questions?

Join our discord
Our documentation is currently incomplete and undergoing active development. If you have any questions or feedback, please visit this forum thread.