Garry's Mod Wiki

Revision Difference

GM:CanPlayerEnterVehicle#511416

<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"></arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="boolean">False if the player is not allowed to enter the vehicle.</ret>⤶ </rets>⤶ </function>⤶ ⤶