let overlayParams = {
enableDepth: true,
deleteWhenUnused: false,
keepNonBlurred: true,
processAttachments: true,
fill: { enable: false, color: 0xFFFFFFFF },
noise: { enable: false, size: 0.0, speed: 0.0, intensity: 0.0 },
outline: { enable: true, color: 0xFF9000FF, width: 5.0, blurRadius: 1.0, blurIntensity: 1.0 },
wireframe: { enable: false }
};
mp.game.graphics.setEntityOverlayPassEnabled(true);
let batch = mp.game.graphics.createEntityOverlayBatch(overlayParams);
mp.events.add('render', () => {
batch.addThisFrame(mp.players.local);
});