Skip to content

Commit df186ac

Browse files
Scraper: parse event page notes
1 parent 8e254d4 commit df186ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+287
-0
lines changed

events/Browser/onClientBrowserCreated.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ examples:
1313
- path: examples/onClientBrowserCreated-1.lua
1414
description: ''
1515
side: client
16+
notes:
17+
- type: info
18+
content: Calling loadBrowserURL right after createBrowser will not work normally
19+
due to the nature of the asynchronous browser interface.

events/Browser/onClientBrowserWhitelistChange.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ examples:
1414
- path: examples/onClientBrowserWhitelistChange-1.lua
1515
description: ''
1616
side: client
17+
notes:
18+
- type: info
19+
content: Attaching the event to a webbrowser won't work. Attach it to the root element
20+
instead.

events/Client/onConsole.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ examples:
1515
- path: examples/onConsole-1.lua
1616
description: ''
1717
side: server
18+
notes:
19+
- type: info
20+
content: The event will not be triggered if the message can be processed by an existing
21+
command handler

events/Colshape/onClientColShapeHit.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ examples:
2323
description: This example outputs to the chatbox if the local user is in the same
2424
dimension as the collision shape or not.
2525
side: client
26+
notes:
27+
- type: info
28+
content: The hit won't be detected if the element that entered the colshape is a
29+
colshape or projectile.

events/Colshape/onColShapeHit.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ examples:
2020
description: This example creates a hill area for aKing of the hillgamemode. When
2121
a player enters or leaves the area, it's announced in the chatbox.
2222
side: server
23+
notes:
24+
- type: info
25+
content: The hit won't be detected if the element that entered the colshape is a
26+
colshape.

events/Element/onClientElementStreamIn.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,18 @@ examples:
1414
description: This example shows you how to tell player that another player was streamed
1515
in and the distance between them and said player
1616
side: client
17+
notes:
18+
- type: info
19+
content: This event also triggers for a remote player that dies in front of local
20+
player, even if they respawn far away.. the moment they do so, this event will
21+
be triggered, and if you'd measure distance between local and said remote player
22+
(that spawned far away) during this event, it would output the distance at which
23+
they died in front of local player, e.g 2 metres. This is bug-prone behavior and
24+
likely incorrect, to be fixed in the future, but for now be aware. The 'low distance'
25+
aspect of this (which could worsen your results) is caused by the split second
26+
that their ped elements may 'flash' past its wasted location during the respawning
27+
process. For now you can work around these side effect (both, or the distance
28+
aspect.. results may vary based on randomness) by adding an isPedDead check inside
29+
the event, checking source (said remote player), as this delays the onClientElementIn
30+
until after full respawn has taken place. The below script example incorporates
31+
this workaround

events/Element/onClientElementStreamOut.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ examples:
1414
description: This example shows you how to tell player that another player was streamed
1515
out and the distance between them and said player
1616
side: client
17+
notes:
18+
- type: info
19+
content: Be aware that this event triggers for local player (as itself being the
20+
element that got streamed out) when said local player dies and respawns, as this
21+
is the removal & recreation of entity local ped.

events/Input/onClientClick.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,6 @@ examples:
4848
displays in the position of the element telling you what kind of element you have
4949
clicked. It hides after 5 seconds.
5050
side: client
51+
notes:
52+
- type: info
53+
content: This event only triggers if the cursor is visible by showCursor

events/Input/onClientGUIClick.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,11 @@ examples:
2828
the button is clicked with the left mouse button, it will output the message in
2929
the edit box into the chat box.
3030
side: client
31+
notes:
32+
- type: info
33+
content: The player who clicked the gui-element is always the localPlayer .
34+
- type: info
35+
content: If the GUI Element attached to this event has a parent element, this event
36+
will be triggered once the parent element of the attached element is clicked too.
37+
You can set the parameter propagate to false in the call to addEventHandler to
38+
prevent this.

events/Object/onClientObjectBreak.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ examples:
1414
description: This example prevents objects from beeing broken in interiors.
1515
side: client
1616
canceling: If this event is canceled, the object will not break.
17+
notes:
18+
- type: info
19+
content: This event is only triggered for objects that are streamed in

0 commit comments

Comments
 (0)