diff --git a/functions/Element/setElementHealth.yaml b/functions/Element/setElementHealth.yaml
index 61fda85..b4da136 100644
--- a/functions/Element/setElementHealth.yaml
+++ b/functions/Element/setElementHealth.yaml
@@ -8,14 +8,15 @@ shared: &shared
description: |
This function sets the health of a [player](/player), [ped](/ped), [vehicle](/vehicle), or [object](/object) element.
notes:
- - |
- In the case of the [vehicle](/vehicle) element, the health ranges from 0 to 1000.
-
- - *1000:* no damage at all
- - *650:* white steam 0%, black smoke 0%
- - *450:* white steam 100%, black smoke 50%
- - *250:* white steam 0%, black smoke 100%
- - *249:* fire with big black smoke (blowing up)
+ - type: 'standard'
+ content: |
+ In the case of the [vehicle](/vehicle) element, the health ranges from 0 to 1000.
+
+ - *1000:* no damage at all
+ - *650:* white steam 0%, black smoke 0%
+ - *450:* white steam 100%, black smoke 50%
+ - *250:* white steam 0%, black smoke 100%
+ - *249:* fire with big black smoke (blowing up)
parameters:
- name: 'theElement'
type: 'element'
diff --git a/schemas/common-defs.yaml b/schemas/common-defs.yaml
index 5e820e4..b2c4d1f 100644
--- a/schemas/common-defs.yaml
+++ b/schemas/common-defs.yaml
@@ -5,9 +5,25 @@ type: object
$defs:
notes:
type: array
- description: List of noteworthy pieces of information for the item.
+ description: |
+ List of noteworthy pieces of information for the item.
+ Each note can be of a specific type, e.g., 'standard' or 'important'.
items:
- type: string
+ type: object
+ description: An individual note item.
+ required:
+ - content
+ properties:
+ type:
+ type: string
+ description: The type of the note, influencing its presentation.
+ enum:
+ - standard
+ - important
+ default: standard
+ content:
+ type: string
+ description: The textual content of the note. Can use markdown and YAML multi-line strings.
meta:
type: array
diff --git a/schemas/function.yaml b/schemas/function.yaml
index e29880a..755045b 100644
--- a/schemas/function.yaml
+++ b/schemas/function.yaml
@@ -150,4 +150,4 @@ $defs:
description: Type of the return value.
name:
type: string
- description: Name of the return value.
+ description: Name of the return value.
\ No newline at end of file
diff --git a/web/src/components/NoteBox.astro b/web/src/components/NoteBox.astro
new file mode 100644
index 0000000..0d0f210
--- /dev/null
+++ b/web/src/components/NoteBox.astro
@@ -0,0 +1,63 @@
+---
+import type { HTMLAttributes } from 'astro/types';
+
+interface Props extends HTMLAttributes<'div'> {
+ type?: 'standard' | 'important';
+}
+
+const { type = 'standard', class: className, ...rest } = Astro.props;
+---
+