Skip to content

Commit 9d70ac1

Browse files
Update events due to fix in BodyParts template
1 parent bc9c9ae commit 9d70ac1

File tree

7 files changed

+153
-8
lines changed

7 files changed

+153
-8
lines changed

events/Ped/onClientPedDamage.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,21 @@ parameters:
1515
description: An integer representing the weapon ID the attacker used
1616
- name: bodypart
1717
type: int
18-
description: An integer representing the bodypart the ped was damaged
18+
description: 'An integer representing the bodypart the ped was damaged
19+
20+
3: Torso
21+
22+
4: Ass
23+
24+
5: Left Arm
25+
26+
6: Right Arm
27+
28+
7: Left Leg
29+
30+
8: Right Leg
31+
32+
9: Head'
1933
- name: loss
2034
type: float
2135
description: A float representing the percentage of health the ped lost.

events/Ped/onClientPedWasted.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,21 @@ parameters:
1414
description: An integer representing the killer weapon or the damage types.
1515
- name: bodypart
1616
type: int
17-
description: An integer representing the bodypart the player was damaged.
17+
description: 'An integer representing the bodypart the player was damaged.
18+
19+
3: Torso
20+
21+
4: Ass
22+
23+
5: Left Arm
24+
25+
6: Right Arm
26+
27+
7: Left Leg
28+
29+
8: Right Leg
30+
31+
9: Head'
1832
- name: lossOrStealth
1933
type: mixed
2034
description: A float representing the percentage of health the ped lost in the final

events/Ped/onPedWasted.yaml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,44 @@ source_element:
66
description: The source of this event is the ped that died or got killed.
77
description: This event is triggered when a ped is killed or dies. It is not triggered
88
for players.
9-
parameters: []
9+
parameters:
10+
- name: totalAmmo
11+
type: int
12+
description: an int representing the total ammo the victim had when he died.
13+
- name: killer
14+
type: element
15+
description: an element representing the player, ped or vehicle who was the killer. If
16+
there was no killer this is false.
17+
- name: killerWeapon
18+
type: int
19+
description: an int representing the killer weapon or the damage types.
20+
- name: bodypart
21+
type: int
22+
description: 'an int representing the bodypart ID the victim was hit on when he
23+
died.
24+
25+
3: Torso
26+
27+
4: Ass
28+
29+
5: Left Arm
30+
31+
6: Right Arm
32+
33+
7: Left Leg
34+
35+
8: Right Leg
36+
37+
9: Head'
38+
- name: stealth
39+
type: bool
40+
description: a boolean representing whether or not this was a stealth kill.
41+
- name: animGroup
42+
type: int
43+
description: an integer representing the ped's current animation group.
44+
- name: animID
45+
type: int
46+
description: an integer representing the ped's current animation ID.
1047
examples:
1148
- path: examples/onPedWasted-1.lua
1249
description: This example outputs to the console that the ped is now dead.

events/Player/onClientPlayerDamage.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,21 @@ parameters:
1717
or some other types of damage.
1818
- name: bodypart
1919
type: int
20-
description: An integer representing the bodypart the player was damaged.
20+
description: 'An integer representing the bodypart the player was damaged.
21+
22+
3: Torso
23+
24+
4: Ass
25+
26+
5: Left Arm
27+
28+
6: Right Arm
29+
30+
7: Left Leg
31+
32+
8: Right Leg
33+
34+
9: Head'
2135
- name: loss
2236
type: float
2337
description: A float representing the percentage of health the player lost.

events/Player/onClientPlayerWasted.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,21 @@ parameters:
1414
description: An integer representing the killer weapon or the damage types.
1515
- name: bodypart
1616
type: int
17-
description: An integer representing the bodypart the player was damaged.
17+
description: 'An integer representing the bodypart the player was damaged.
18+
19+
3: Torso
20+
21+
4: Ass
22+
23+
5: Left Arm
24+
25+
6: Right Arm
26+
27+
7: Left Leg
28+
29+
8: Right Leg
30+
31+
9: Head'
1832
- name: stealth
1933
type: bool
2034
description: A boolean representing whether or not this was a stealth kill.

events/Player/onPlayerDamage.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,22 @@ parameters:
1616
or some other types of damage.
1717
- name: bodypart
1818
type: int
19-
description: an int representing the bodypart ID the player was hit on when he got
20-
damaged.
19+
description: 'an int representing the bodypart ID the player was hit on when he
20+
got damaged.
21+
22+
3: Torso
23+
24+
4: Ass
25+
26+
5: Left Arm
27+
28+
6: Right Arm
29+
30+
7: Left Leg
31+
32+
8: Right Leg
33+
34+
9: Head'
2135
- name: loss
2236
type: float
2337
description: a float representing the percentage of health the player lost.

events/Player/onPlayerWasted.yaml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,45 @@ source_element:
55
type: element
66
description: The source of this event is the player that died or got killed.
77
description: This event is triggered when a player is killed or dies.
8-
parameters: []
8+
parameters:
9+
- name: totalAmmo
10+
type: int
11+
description: an int representing the total ammo the victim had when they died.
12+
- name: killer
13+
type: element
14+
description: an element representing the player, ped, vehicle or object who was
15+
the killer. Deaths resulting from fall damage provide the vehicle or object landed
16+
on as the killer. If there is no killer this is false.
17+
- name: killerWeapon
18+
type: int
19+
description: an int representing the killer weapon or the damage type.
20+
- name: bodypart
21+
type: int
22+
description: 'an int representing the bodypart ID the victim was hit on when they
23+
died.
24+
25+
3: Torso
26+
27+
4: Ass
28+
29+
5: Left Arm
30+
31+
6: Right Arm
32+
33+
7: Left Leg
34+
35+
8: Right Leg
36+
37+
9: Head'
38+
- name: stealth
39+
type: bool
40+
description: a boolean value representing whether or not this was a stealth kill.
41+
- name: animGroup
42+
type: int
43+
description: an integer representing the player's current animation group.
44+
- name: animID
45+
type: int
46+
description: an integer representing the player's current animation ID.
947
examples:
1048
- path: examples/onPlayerWasted-1.lua
1149
description: This example prints the killer and bodypart to the chat when a player

0 commit comments

Comments
 (0)