---
name: "createDiarySubject"
type: command
status: ok
groups: ["Briefing"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/createDiarySubject
revid: 364194
updated: 2024-05-05T10:46:53Z
---

# createDiarySubject

*Command · Briefing · Arma 3 v0.50 · introduced in Arma 2 v1.00*

Locality: arguments **local** · effect **local**

## Description

Creates a new subject in the Diary.

## Syntax

```sqf
player createDiarySubject [subject, displayName, picture]
```

**Parameters:**

- `player`: [Object](../topics/Object.md)
- `subject`: [String](../topics/String.md)
- `displayName`: [String](../topics/String.md) - the visible name
- `picture`: [String](../topics/String.md) - (Optional, default `""`) icon to display next to the subject. Can be set later with [setDiarySubjectPicture](../commands/setDiarySubjectPicture.md). Similar to [lbSetPictureRight](../commands/lbSetPictureRight.md).

**Returns:** [Number](../topics/Number.md) - index of the entry that was added

## Examples

### Example 1

```sqf
_index = player createDiarySubject ["myPage","My page"];
```

## See also

[removeDiarySubject](../commands/removeDiarySubject.md) · [processDiaryLink](../commands/processDiaryLink.md) · [createDiaryLink](../commands/createDiaryLink.md) · [createDiaryRecord](../commands/createDiaryRecord.md) · [diarySubjectExists](../commands/diarySubjectExists.md) · [setDiarySubjectPicture](../commands/setDiarySubjectPicture.md) · [allDiarySubjects](../commands/allDiarySubjects.md)

<sub>Source: [BI Community Wiki — createDiarySubject](https://community.bistudio.com/wiki/createDiarySubject) (revision 364194).</sub>
