PlayerStreamIn: Difference between revisions
(Created page with "Event triggered when a player enters into the stream distance (of another player ?). ==Parameters== * '''player''' * '''forPlayer''' ==Example== <syntaxhighlight lang="javas...") |
mNo edit summary |
||
| Line 7: | Line 7: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
mp.events.add(" | mp.events.add("playerStreamIn", (player, forPlayer) => { | ||
// Do what you want. | // Do what you want. | ||
}); | }); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 21:21, 19 January 2018
Event triggered when a player enters into the stream distance (of another player ?).
Parameters
- player
- forPlayer
Example
mp.events.add("playerStreamIn", (player, forPlayer) => {
// Do what you want.
});