# wasabi\_ambulance

## in `wasabi_ambulance/game/client/client.lua` CTRL + F and look for:&#x20;

```lua
AddEventHandler('wasabi_bridge:onPlayerDeath', function(data)
```

* at the beginning of the function add following:
* ```lua
  if LocalPlayer.state.inDeathmatch == true then return end
  ```
* your event should look like this:

<div align="left"><figure><img src="https://2644204359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fso4Bz1A5MlataovyRdlF%2Fuploads%2FcJGiaEq5TVcXy2enn5k4%2Fwas.png?alt=media&#x26;token=d302dfbc-0cba-4d55-a4ad-2c012c7f455e" alt=""><figcaption></figcaption></figure></div>

## in `wasabi_ambulance/game/client/client.lua` CTRL + F and look for:&#x20;

```lua
AddEventHandler('gameEventTriggered', function(event, data)
```

* at the beginning of the function add following:
* ```lua
  if LocalPlayer.state.inDeathmatch == true then return end
  ```
* Your event should look like this:

<figure><img src="https://2644204359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fso4Bz1A5MlataovyRdlF%2Fuploads%2F7QRyqd8bXjwzIy85dS5B%2Fwas2.png?alt=media&#x26;token=beb39f4b-a68b-4929-87c5-af38baf72af4" alt=""><figcaption></figcaption></figure>
