const getInteriorId = position => {
const {x, y, z} = position;
return mp.game.interior.getInteriorAtCoords(x, y, z);
}
const shopInteriorId = 12345; // зайди в интерьер 24/7 и выведи себе id в консоль, потом запиши сюда
const isPlayerInShop = player => {
return getInteriorId(player.position) === shopInteriorId;
}
mp.keys.bind(keyName, true, () => {
if (isPlayerInShop(mp.players.local)) return;
// код, который выполняется, если локальный игрок не в 24/7
});