Garry's Mod Wiki

Revision Difference

Player:SetDSP#552595

<function name="SetDSP" parent="Player" type="classfunc"> <description> <warning>The fastReset argument only works on the client, if its set to true on the server it will be ignored and print an error in the console.</warning>⤶ Applies the specified sound filter to the player.⤶ </description>⤶ <description> Applies the specified sound filter to the player.</description>⤶ <realm>Shared</realm> <args> <arg name="soundFilter" type="number">The index of the sound filter to apply. Pick from the [list of DSP's](https://developer.valvesoftware.com/wiki/Dsp_presets).</arg> <arg name="fastReset" type="boolean">If set to true the sound filter will be removed faster.</arg>⤶ <arg name="fastReset" type="boolean">If set to true the sound filter will be removed faster.⤶ <note>**This only works clientside**. If used serverside, a message will be displayed (`SetPlayerDSP: fastReset only valid from client`) in the server console.</note></arg>⤶ </args> </function>