Garry's Mod Wiki

Revision Difference

Player:ExitVehicle#560237

<function name="ExitVehicle" parent="Player" type="classfunc"> <description>Makes the player exit the vehicle if they're in one.</description>⤶ <description>Forces the player to exit the vehicle if they're in one.⤶ This bypasses <page>GM:CanExitVehicle</page>.⤶ </description>⤶ <realm>Server</realm> </function> <example> <description>Makes player 1 leave their vehicle if they're in one.</description> <code>Entity( 1 ):ExitVehicle()</code> <output>Player 1 will exit the the vehicle that they're currently in.</output> </example>