Garry's Mod Wiki

Revision Difference

Player:ExitVehicle#546599

<function name="ExitVehicle" parent="Player" type="classfunc"> <description>Makes the player exit the vehicle if they're in one.</description> <realm>Server</realm> </function> <example> <description>Make player 1 leave his vehicle if he's driving one.</description> <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 he's currently in.</output> <output>Player 1 will exit the the vehicle that they're currently in.</output> </example>