Garry's Mod Wiki

Revision Difference

GM:CanPlayerEnterVehicle#553042

<function name="CanPlayerEnterVehicle" parent="GM" type="hook"> <ishook>yes</ishook>⤶ <description> Determines whether or not the player can enter the vehicle. Called just before <page>GM:PlayerEnteredVehicle</page>. </description> <realm>Server</realm> <predicted>No</predicted>⤶ <args> <arg name="player" type="Player">The player.</arg> <arg name="vehicle" type="Vehicle">The vehicle.</arg> <arg name="role" type="number">The seat number.</arg> </args> <rets> <ret name="" type="boolean">`false` if the player is not allowed to enter the vehicle.</ret> </rets> </function>