Revision Difference
GM:CalcVehicleView#553070
<function name="CalcVehicleView" parent="GM" type="hook">
<ishook>yes</ishook>⤶
<description>
Called from <page>GM:CalcView</page> when player is in driving a vehicle.
This hook may not be called in gamemodes that override <page>GM:CalcView</page>.
</description>
<realm>Client</realm>
<predicted>No</predicted>⤶
<args>
<arg name="veh" type="Vehicle">The vehicle the player is driving</arg>
<arg name="ply" type="Player">The vehicle driver</arg>
<arg name="view" type="table">The view data containing players FOV, view position and angles, see <page>Structures/CamData</page></arg>
</args>
<rets>
<ret name="" type="table">The modified view table containing new values, see <page>Structures/CamData</page></ret>
</rets>
</function>