Garry's Mod Wiki

Revision Difference

Player:SetAllowWeaponsInVehicle#512501

<function name="SetAllowWeaponsInVehicle" parent="Player" type="classfunc">⤶ <description>⤶ Allows player to use his weapons in a vehicle. You need to call this before entering a vehicle.⤶ ⤶ <bug issue="1277">Shooting in a vehicle fires two bullets.</bug>⤶ ⤶ <bug issue="3261">Weapon viewpunch does not decay while in a vehicle, leading to incorrect aim angles.</bug>⤶ </description>⤶ <realm>Server</realm>⤶ <args>⤶ <arg name="allow" type="boolean">Show we allow player to use his weapons in a vehicle or not.</arg>⤶ </args>⤶ </function>⤶ ⤶