File tree Expand file tree Collapse file tree 7 files changed +153
-8
lines changed Expand file tree Collapse file tree 7 files changed +153
-8
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,21 @@ parameters:
15
15
description : An integer representing the weapon ID the attacker used
16
16
- name : bodypart
17
17
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'
19
33
- name : loss
20
34
type : float
21
35
description : A float representing the percentage of health the ped lost.
Original file line number Diff line number Diff line change @@ -14,7 +14,21 @@ parameters:
14
14
description : An integer representing the killer weapon or the damage types.
15
15
- name : bodypart
16
16
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'
18
32
- name : lossOrStealth
19
33
type : mixed
20
34
description : A float representing the percentage of health the ped lost in the final
Original file line number Diff line number Diff line change @@ -6,7 +6,44 @@ source_element:
6
6
description : The source of this event is the ped that died or got killed.
7
7
description : This event is triggered when a ped is killed or dies. It is not triggered
8
8
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.
10
47
examples :
11
48
- path : examples/onPedWasted-1.lua
12
49
description : This example outputs to the console that the ped is now dead.
Original file line number Diff line number Diff line change @@ -17,7 +17,21 @@ parameters:
17
17
or some other types of damage.
18
18
- name : bodypart
19
19
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'
21
35
- name : loss
22
36
type : float
23
37
description : A float representing the percentage of health the player lost.
Original file line number Diff line number Diff line change @@ -14,7 +14,21 @@ parameters:
14
14
description : An integer representing the killer weapon or the damage types.
15
15
- name : bodypart
16
16
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'
18
32
- name : stealth
19
33
type : bool
20
34
description : A boolean representing whether or not this was a stealth kill.
Original file line number Diff line number Diff line change @@ -16,8 +16,22 @@ parameters:
16
16
or some other types of damage.
17
17
- name : bodypart
18
18
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'
21
35
- name : loss
22
36
type : float
23
37
description : a float representing the percentage of health the player lost.
Original file line number Diff line number Diff line change @@ -5,7 +5,45 @@ source_element:
5
5
type : element
6
6
description : The source of this event is the player that died or got killed.
7
7
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.
9
47
examples :
10
48
- path : examples/onPlayerWasted-1.lua
11
49
description : This example prints the killer and bodypart to the chat when a player
You can’t perform that action at this time.
0 commit comments