# EVENT::ADD_SHOCKING_EVENT_FOR_ENTITY

- **Hash:** `0x7FD8F3BE76F89422`
- **Namespace:** EVENT
- **Runtime name (Lua/JS):** `AddShockingEventForEntity`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/EVENT/ADD_SHOCKING_EVENT_FOR_ENTITY

## Signature

```c
ScrHandle ADD_SHOCKING_EVENT_FOR_ENTITY(Hash eventType, Entity entity, float p2, float p3, float p4, float p5, float p6, float p7, BOOL p8, BOOL p9, int p10, int p11);
```

## Parameters

- `eventType` (`Hash`)
- `entity` (`Entity`)
- `p2` (`float`)
- `p3` (`float`)
- `p4` (`float`)
- `p5` (`float`)
- `p6` (`float`)
- `p7` (`float`)
- `p8` (`BOOL`)
- `p9` (`BOOL`)
- `p10` (`int`)
- `p11` (`int`)

## Returns

`ScrHandle`

## Description

eventType: https://alloc8or.re/rdr3/doc/enums/eEventType.txt

## Usage

### Lua

```lua
local retval = AddShockingEventForEntity(eventType, entity, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11)

-- always available, by hash
local retval = Citizen.InvokeNative(0x7FD8F3BE76F89422, eventType, entity, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = AddShockingEventForEntity(eventType, entity, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11);

// by hash
const retval = Citizen.invokeNative('0x7FD8F3BE76F89422', eventType, entity, p2 + 0.0000001, p3 + 0.0000001, p4 + 0.0000001, p5 + 0.0000001, p6 + 0.0000001, p7 + 0.0000001, p8, p9, p10, p11, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x7FD8F3BE76F89422, eventType, entity, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11);
```

- Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat("name")` or a backtick literal like `` `name` ``.
- 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.

## Related enums

- [eEventType](https://natives.borderlinerp.com/enums/eEventType.md) — 492 values

*Sources: alloc8or RDR3 NativeDB.*
