GM:CanPlayerEnterVehicle

From Garry's Mod
Jump to: navigation, search
 GM:CanPlayerEnterVehicle( )

Contents

Description

Determines whether or not the player can enter the vehicle.

NOTE Although this hook is defined in the base gamemode as shared, it doesn't appear to be called clientside.

Arguments

Player player

The player

Arguments

Vehicle vehicle

The vehicle

Arguments

number role

Returns

boolean

False if the player is not allowed to enter the vehicle.
Personal tools
Navigation