Garry's Mod Wiki

Revision Difference

Player:EnterVehicle#512606

<function name="EnterVehicle" parent="Player" type="classfunc">⤶ <description>Enters the player into specified vehicle</description>⤶ <realm>Server</realm>⤶ <args>⤶ <arg name="vehicle" type="Vehicle">Vehicle the player will enter</arg>⤶ </args>⤶ </function>⤶ ⤶ <example>⤶ <description>Enters the player into the vehicle they're looking at</description>⤶ <code>⤶ local jeep = Entity( 1 ):GetEyeTrace().Entity⤶ Entity( 1 ):EnterVehicle(jeep)⤶ </code>⤶ ⤶ </example>