Garry's Mod Wiki

GM:CanPlayerEnterVehicle

boolean GM:CanPlayerEnterVehicle( Player player, Vehicle vehicle, number role )

Description

Determines whether or not the player can enter the vehicle.

Called just before GM:PlayerEnteredVehicle.

Arguments

1 Player player
The player
2 Vehicle vehicle
The vehicle
3 number role

Returns

1 boolean
False if the player is not allowed to enter the vehicle.

Page Links


Special Pages


Wikis

?

Render Time: 54ms

DB GetPage 4
Generate Html 12
SaveChanges (1) 17
Render Body 0
Render Sidebar 17