EntityDataChange: Difference between revisions
No edit summary |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{Warning|This event is replaced with [[Events::addDataHandler|addDataHandler function]] as of RAGE MP version 0.3.7}} | ||
{{ClientsideCsJsEvent}} | |||
{{JSContainer| | {{JSContainer| | ||
{{Example}} | |||
<syntaxhighlight lang="javascript"> | |||
<syntaxhighlight lang=" | |||
// Other player data changed | // Other player data changed | ||
mp.events.add('entityDataChange', (entity, key, value) => { | mp.events.add('entityDataChange', (entity, key, value) => { | ||
| Line 15: | Line 15: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
[[Category:Deprecated]] | |||
Latest revision as of 13:41, 24 May 2019
Client-Side Event
JavaScript Syntax
Example
// Other player data changed
mp.events.add('entityDataChange', (entity, key, value) => {
if(entity.type == "player")
{
mp.gui.chat.push("Entitydata has been changed!");
}
});