Gamemode.PlayerEnteredVehicle
From GMod Wiki
Revision as of 06:26, 24 October 2009 by Crazy Quebecer (Talk | contribs)
Event Hook | |
Hook Name | PlayerEnteredVehicle |
Syntax | GM:PlayerEnteredVehicle( Player Player, Vehicle Vehicle, Integer role ) |
Description | Called when a player enters a vehicle. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.PlayerEnteredVehicle]Gamemode.PlayerEnteredVehicle [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Messages console when a player enters a vehicle |
---|---|
Used on | |
Code | function PlayerEnteredVehicle( player, vehicle, role ) Msg( player:Nick() .. " has entered a vehicle" ) end |
Output | N/A |