Skip to content

Commit f4c3bba

Browse files
Fix onClientPlayerWasted parameters
1 parent bf458a4 commit f4c3bba

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

events/Player/onClientPlayerWasted.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,25 @@ source_element:
55
type: element
66
description: The source of this event is the player that died.
77
description: This event is triggered whenever a player, including those remote, dies.
8-
parameters: []
8+
parameters:
9+
- name: killer
10+
type: element
11+
description: A player, ped or vehicle element representing the killer.
12+
- name: weapon
13+
type: int
14+
description: An integer representing the killer weapon or the damage types.
15+
- name: bodypart
16+
type: int
17+
description: An integer representing the bodypart the player was damaged.
18+
- name: stealth
19+
type: bool
20+
description: A boolean representing whether or not this was a stealth kill.
21+
- name: animGroup
22+
type: int
23+
description: an integer representing the player's current animation group.
24+
- name: animID
25+
type: int
26+
description: an integer representing the player's current animation ID.
927
examples:
1028
- path: examples/onClientPlayerWasted-1.lua
1129
description: This example outputs a mocking message when the local player dies.

0 commit comments

Comments
 (0)