public async Task OnColshape(IColShape colShape, IEntity targetEntity, bool state) => await AltAsync.Do(() => { if (!state) { return; } if (colShape == null || !colShape.Exists) { return; } if (targetEntity.Type != BaseObjectType.Player) { return; } Alt.Log("Banki"); AtmEntity atmEntity = colShape.GetAtmEntity(); if (atmEntity == null || atmEntity.ColShape != colShape) { return; } IPlayer player = targetEntity as IPlayer; if (player.IsInVehicle) { return; } new Interaction(player, "atm:openWindow", "aby otworzyć ~g~ATM"); });