Garry's Mod Wiki

Revision Difference

Player:SetAllowWeaponsInVehicle#546613

<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. Allows player to use their weapons in a vehicle. You need to call this before entering a vehicle. <bug issue="1277">Shooting in a vehicle fires two bullets.</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> <arg name="allow" type="boolean">Show we allow player to use their weapons in a vehicle or not.</arg> </args> </function>