# GRAPHICS::_ANIMPOSTFX_SET_STRENGTH

- **Hash:** `0xCAB4DD2D5B2B7246`
- **Namespace:** GRAPHICS
- **Runtime name (Lua/JS):** `AnimpostfxSetStrength`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/GRAPHICS/_ANIMPOSTFX_SET_STRENGTH

## Signature

```c
void _ANIMPOSTFX_SET_STRENGTH(const char* effectName, float strength);
```

## Parameters

- `effectName` (`const char*`)
- `strength` (`float`)

## Returns

`void`

## Description

must be called after ANIMPOSTFX_PLAY, strength 0.0f - 1.0f

## Usage

### Lua

```lua
AnimpostfxSetStrength(effectName, strength)

-- always available, by hash
Citizen.InvokeNative(0xCAB4DD2D5B2B7246, effectName, strength)
```

### JavaScript

```js
AnimpostfxSetStrength(effectName, strength);

// by hash
Citizen.invokeNative('0xCAB4DD2D5B2B7246', effectName, strength + 0.0000001);
```

### C#

```csharp
Function.Call((Hash)0xCAB4DD2D5B2B7246, effectName, strength);
```

- Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.
- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

*Sources: alloc8or RDR3 NativeDB.*
