EntityDataChange

From RAGE Multiplayer Wiki
Revision as of 11:48, 15 October 2018 by DevGrab (talk | contribs) (Created page with "==Example== <div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;"> <div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Example

Client-Side
// Other player streams in
mp.events.add('entityDataChange', (entity, key, value) => {

    if(entity.type == "player")
    {
        mp.gui.chat.push("Entitydata has been changed!");
    }

});