Skip to content

Commit

Permalink
update elementhealth pages to match example types
Browse files Browse the repository at this point in the history
  • Loading branch information
ffsPLASMA committed Jan 22, 2025
1 parent d90c34a commit a2da7ac
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
16 changes: 8 additions & 8 deletions functions/Element/getElementHealth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ shared: &shared
values:
- type: 'float'
name: 'health'
examples:
- path: 'examples/getElementHealth-1.lua'
description: |
This example outputs the player and vehicle health (if player is in a vehicle) to chatbox using /health command:
- path: 'examples/getElementHealth-2.lua'
description: |
This example heals the player to 100 HP using /healme command if he's at 50 HP or lower:
issues:
- id: 3791
description: 'setPedArmor and setElementHealth synchronization problems from Client to Server'
Expand All @@ -32,4 +25,11 @@ server:
<<: *shared

client:
<<: *shared
<<: *shared
examples:
- path: 'examples/getElementHealth-1.lua'
description: |
This example outputs the player and vehicle health (if player is in a vehicle) to chatbox using /health command:
- path: 'examples/getElementHealth-2.lua'
description: |
This example heals the player to 100 HP using /healme command if he's at 50 HP or lower:
17 changes: 9 additions & 8 deletions functions/Element/setElementHealth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ shared: &shared
values:
- type: 'bool'
name: 'result'
examples:
- path: 'examples/setElementHealth-1.lua'
description: |
This example changes the player health to new specified value using /sethealth <value> command:
- path: 'examples/setElementHealth-2.lua'
description: |
This example heals the player vehicle using the command /repairvehicle if it's below 1000 HP:
issues:
- id: 3807
description: 'hpbar on hud is not compatible visually with MAX_HEALTH stat'
Expand All @@ -42,6 +35,14 @@ shared: &shared

server:
<<: *shared
examples:
- path: 'examples/setElementHealth-1.lua'
description: |
This example changes the player health to new specified value using /sethealth <value> command:
client:
<<: *shared
<<: *shared
examples:
- path: 'examples/setElementHealth-2.lua'
description: |
This example heals the player vehicle using the command /repairvehicle if it's below 1000 HP:

0 comments on commit a2da7ac

Please sign in to comment.