Garry's Mod Wiki

DRIVE

Represents a drive mode or "method" to be registered with drive.Register.

This page lists all possible fields and hooks a drive mode can have.

Events

DRIVE:CalcView( table{ViewData} view_in )
Optionally alter the player's view if they are using this drive mode. This hook is called from the default implementation of GM:CalcView which is here. Therefore, it will not be called if any other hook added to CalcView returns any value, or if the current gamemode overrides the default hook and does not call drive. CalcView.