> For the complete documentation index, see [llms.txt](https://gtadocs.gta-explore.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gtadocs.gta-explore.com/train-heist/client-functions.md).

# Client Functions

Client editables can be found in: client/editables.lua

## ShowNotification

This function displays the notifications.

```lua
function ShowNotification(event)
    AddTextEntry('notification_message', event.message)
    BeginTextCommandThefeedPost('notification_message')
    EndTextCommandThefeedPostMessagetext("CHAR_BLANK_ENTRY", "CHAR_BLANK_ENTRY", false, 0, event.title, "")
    EndTextCommandThefeedPostTicker(false, true)
end
```

### Parameters

* `event`:
  * `title`: **string**, notification title.
  * `message`: **string**, notification content.
  * `type`: **string**, notification type. (“default”, “error”)

## DoesPedHaveAnyBag

This function returns whether the player ped has a bag or not.

```lua
function DoesPedHaveAnyBag(ped)
    return GetPedDrawableVariation(ped, 5) > 0
end
```

### Parameters

* `ped`: **integer**, game entity handle. In this case, equivalent to `PlayerPedId()`.
