NetworkEvents.dataReceived("ninjago:sync_first_person", event => {
    let player = event.player;
    if (!player) return;

    // Ensure persistentData exists
    if (!player.persistentData) {
        player.persistentData = {};
    }

    // Store first-person mode in persistentData
    player.persistentData.firstPersonMode = event.data.firstPersonMode;
});