EnableClownBloodVfx
DocsEnableClownBloodVfx(toggle)Description
If true, this native will create purple explosions upon projectile impact, add comic-like PTFX when firing a weapon, create a sound on bullet impact and have its own "blood effect".
If the PTFX asset "scr_rcbarry2" is not requested using (<code>RequestNamedPtfxAsset</code>) then this native will not work as intended.
Excerpt from fm_content_drug_lab_work.c:
STREAMING::REQUEST_NAMED_PTFX_ASSET("scr_rcbarry2");
if (STREAMING::HAS_NAMED_PTFX_ASSET_LOADED("scr_rcbarry2"))
{
GRAPHICS::ENABLE_CLOWN_BLOOD_VFX(true);
AUDIO::START_AUDIO_SCENE("DLC_CM2022_DRUG_TRIP_SPRINKLERS_SCENE");
func_720(26);
}Parameters
| Name | Type | Description |
|---|---|---|
toggle | BOOL | Whether to toggle the clown VFX on or off. |
Returns
voidThis native does not return a value.
Examples
Official
RequestNamedPtfxAsset("scr_rcbarry2") -- Request the PTFX
while not HasNamedPtfxAssetLoaded("scr_rcbarry2") do
Citizen.Wait(0)
end
EnableClownBloodVfx(true) -- Enable the clown PTFX