From 2edde00284570a42502b75b0d6e172c3611d84e0 Mon Sep 17 00:00:00 2001 From: -ffs-PLASMA <33094646+ffsPLASMA@users.noreply.github.com> Date: Wed, 22 Jan 2025 14:51:52 +0100 Subject: [PATCH] add syntax and return --- functions/Element/setElementHealth.yaml | 7 +++++ web/resources/function.html | 37 +++++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/functions/Element/setElementHealth.yaml b/functions/Element/setElementHealth.yaml index 98d3678..96c8c21 100644 --- a/functions/Element/setElementHealth.yaml +++ b/functions/Element/setElementHealth.yaml @@ -15,6 +15,13 @@ shared: &shared - *450:* white steam 100%, black smoke 50% - *250:* white steam 0%, black smoke 100% - *249:* fire with big black smoke + parameters: + - name: 'theElement' + type: 'element' + description: 'The player, ped, vehicle or object element whose health you want to set.' + - name: 'newHealth' + type: 'float' + description: 'A float indicating the new health to set for the element.' returns: description: | Returns *true* if the new health was set successfully, *false* otherwise. diff --git a/web/resources/function.html b/web/resources/function.html index aa952d2..0d277af 100644 --- a/web/resources/function.html +++ b/web/resources/function.html @@ -13,6 +13,43 @@
{{ function['server'].description }}
{% endif %} + +{% for type_name in ['shared', 'client', 'server'] %} +{% if function[type_name] %} + {% if function[type_name].parameters %} +{{ function[type_name].parameters.description }}
+ + {{ function[type_name].name }}(todo :mreow:)
+
+ {{ item.name }} : {{ item.description }}
+{{ function[type_name].returns.description }}
+{{ item.type }} {{ item.name }}
+