--  LUA  SetAudioSubmixEffectRadioFx

0xAAA94D53

-- SET_AUDIO_SUBMIX_EFFECT_RADIO_FX
SetAudioSubmixEffectRadioFx(
	submixId --[[ integer ]], 
	effectSlot --[[ integer ]]
)

Parameters:

    submixId:

    The submix.
    effectSlot:

    The effect slot for the submix.

Assigns a RadioFX effect to a submix effect slot.

The parameter values for this effect are as follows (backticks are used to represent hashes):
Index	Type	Description
`enabled`	int	Enables or disables RadioFX on this DSP.
`default`	int	Sets default parameters for the RadioFX DSP and enables it.
`freq_low`	float	
`freq_hi`	float	
`fudge`	float	
`rm_mod_freq`	float	
`rm_mix`	float	
`o_freq_lo`	float	
`o_freq_hi`	float	

Examples:

    Lua

-- we want to change the master output

local submix = 0



-- add a RadioFX effect to slot 0

SetAudioSubmixEffectRadioFx(submix, 0)



-- set the default values

SetAudioSubmixEffectParamInt(submix, 0, `default`, 1)
 
 

Parameters:

header:

sentence.

header:

sentence.

header:

sentence.

Returns:

sentence.

Summary

sentence.

Example

---  
    


Additional natives used in this example, or natives commonly used with this native.

NATIVE, NATIVE

Common Errors or Problems

Problem: sentence.

Problem: sentence.

Problem: sentence.

Credits and Disclaimers

The base of this data was taken from the redm/cfx fivem/rdr docs, and vespura. We have been saving and making notes for two years now, and are now adding them to our site for everyone to use. We will be modifying the notes as needed, and building tutorials around the data so these pages will change as we work on it. This is a manual process, not an automated one, so updates will occur as we have time, the priority is releasing resources. Thanks for your patience.

Was the documentation useful?

Related Examples and Posts

Dragon Codes