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:
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.
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -6,7 +6,44 @@ source_element:
66 description : The source of this event is the ped that died or got killed.
77description : 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.
1047examples :
1148- path : examples/onPedWasted-1.lua
1249 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:
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.
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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.
77description : 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.
947examples :
1048- path : examples/onPlayerWasted-1.lua
1149 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